Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate message metadata #1453

Merged
merged 2 commits into from
Aug 12, 2022
Merged

Propagate message metadata #1453

merged 2 commits into from
Aug 12, 2022

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Aug 3, 2022

  • Replace the current message.Header bytes with a structured message.Metadata
  • Remove redundant usages of config.KadcastInitHeader

Resolves #1452

@herr-seppia herr-seppia self-assigned this Aug 3, 2022
@herr-seppia herr-seppia marked this pull request as ready for review August 3, 2022 15:09
pkg/core/chain/chain.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #1453 (49012ac) into master (828364b) will decrease coverage by 10.20%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #1453       +/-   ##
===========================================
- Coverage   50.51%   40.31%   -10.21%     
===========================================
  Files         145      147        +2     
  Lines        7544     9650     +2106     
===========================================
+ Hits         3811     3890       +79     
- Misses       3066     5132     +2066     
+ Partials      667      628       -39     
Impacted Files Coverage Δ
pkg/core/consensus/testing/node.go 0.00% <0.00%> (-93.55%) ⬇️
...ore/consensus/blockgenerator/candidate/testutil.go 0.00% <0.00%> (-90.91%) ⬇️
pkg/core/consensus/testing/utils.go 0.00% <0.00%> (-75.61%) ⬇️
...core/consensus/blockgenerator/candidate/genesis.go 0.00% <0.00%> (-69.24%) ⬇️
...nsensus/blockgenerator/candidate/blockgenerator.go 0.00% <0.00%> (-64.29%) ⬇️
pkg/gql/query/transactions.go 13.43% <0.00%> (-52.55%) ⬇️
pkg/rpc/client/session.go 21.42% <0.00%> (-47.15%) ⬇️
pkg/core/consensus/reduction/aggregator.go 47.36% <0.00%> (-43.94%) ⬇️
pkg/util/nativeutils/eventbus/eventbus.go 57.14% <0.00%> (-42.86%) ⬇️
pkg/rpc/client/client.go 3.73% <0.00%> (-36.61%) ⬇️
... and 169 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

- Replace the current `message.Header` bytes with a structured `message.Metadata`
- Remove redundant usages of `config.KadcastInitHeader`

Resolves #1452
@herr-seppia herr-seppia force-pushed the metadata-1452 branch 2 times, most recently from a5addb0 to 7aa0f65 Compare August 8, 2022 10:28
Default transaction's kadcast height cannot be 0.
If so, tx will not be repropagated
@goshawk-3 goshawk-3 merged commit d3f3348 into master Aug 12, 2022
@goshawk-3 goshawk-3 deleted the metadata-1452 branch August 12, 2022 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propagate metadata through message lifecycle
3 participants