-
Notifications
You must be signed in to change notification settings - Fork 146
fix(lib/grandpa): avoid spamming round messages #2688
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
Merged
EclesioMeloJunior
merged 175 commits into
development
from
eclesio/fix/sending-votes-wrong-stage
Nov 22, 2022
Merged
Changes from all commits
Commits
Show all changes
175 commits
Select commit
Hold shift + click to select a range
88a4a0e
fix: improve sending vote messages and neighbor messages
EclesioMeloJunior 9f073d6
chore: using `notifyNeighbor` goroutine func
EclesioMeloJunior 499e552
chore: solve ci lint warns
EclesioMeloJunior 66063cb
chore: solve `broadcastVotes` test helper to only broadcast `*VoteMes…
EclesioMeloJunior 34b4a3d
chore: improve tests to neighbor messages
EclesioMeloJunior 42b68bc
chore: solve lint warns
EclesioMeloJunior 2b0c4e3
chore: improve not needed long for loop
EclesioMeloJunior 3bad27e
chore: include unit tests
EclesioMeloJunior 5f65292
chore: solve lint warns
EclesioMeloJunior 3a418bc
chore: use incoming messages to decide when determine prevotes
EclesioMeloJunior 0d8adec
fix: improve sending vote messages and neighbor messages
EclesioMeloJunior f5a0223
chore: using `notifyNeighbor` goroutine func
EclesioMeloJunior c23cff5
chore: solve ci lint warns
EclesioMeloJunior f21a428
chore: solve `broadcastVotes` test helper to only broadcast `*VoteMes…
EclesioMeloJunior 71e4ce1
chore: improve tests to neighbor messages
EclesioMeloJunior 397ce6d
chore: solve lint warns
EclesioMeloJunior 3167c10
chore: improve not needed long for loop
EclesioMeloJunior bf39c24
chore: include unit tests
EclesioMeloJunior c9d9342
chore: solve lint warns
EclesioMeloJunior 3561513
chore: use incoming messages to decide when determine prevotes
EclesioMeloJunior ecd6d93
chore: fix lint
EclesioMeloJunior 8d79daa
Merge branch 'eclesio/fix/sending-votes-wrong-stage' of github.com:Ch…
EclesioMeloJunior 075c070
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior d15537c
chore: remove skip cache check when receive the same vote
EclesioMeloJunior 7863b97
chore: resolve diffs and deltas
EclesioMeloJunior 240070a
chore: resolve diffs and deltas
EclesioMeloJunior f540d91
chore: rename to `determinePrecommitCh`
EclesioMeloJunior 053ee06
chore: stop `sendPrevoteMessage` once we reach the prevotes threshold
EclesioMeloJunior 82730f0
chore: waits until round is finalizable
EclesioMeloJunior 87c2dff
chore: remove `ctx` from goroutines and rely on `isFinalizableCh`
EclesioMeloJunior ec36847
chore: wip removing commit message
EclesioMeloJunior 68dd6e8
chore: send commit message after round is finalizable
EclesioMeloJunior 6eb34d4
Tim/fix/sending votes wrong stage (#2761)
timwu20 aef29de
wip: round_tests.go
EclesioMeloJunior bba4474
chore: wip tests
EclesioMeloJunior 9b6dca3
chore: fixed tests to ensure we send messages in the right round
EclesioMeloJunior aff2de7
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 5ddfd63
chore: solve lint wanrs
EclesioMeloJunior 651926e
chore: skip lint `unparam`
EclesioMeloJunior af41370
chore: solve `varying chain` grandpa finalization test
EclesioMeloJunior 41fa913
chore: solve all tests after `playGrandpaRound` refactor
EclesioMeloJunior b8d67e3
chore: solve lint warns
EclesioMeloJunior bf7a1a0
chore: solve lint warns
EclesioMeloJunior da7353b
chore: keep config.toml as development
EclesioMeloJunior ac55379
chore: fix test hanging due to unbuffered channel
EclesioMeloJunior a78577e
chore: improve error wrappings
EclesioMeloJunior 5177a72
chore: solve lint warns
EclesioMeloJunior 79f42c6
chore: solve main issues with finalization and tests
EclesioMeloJunior 10343fe
chore: fix finalization issue on rpc tests with only one authority
EclesioMeloJunior ce4b103
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 7c71d29
chore: solve `state_subscribeStorage` rpc test problems
EclesioMeloJunior ff6a0b8
Merge branch 'eclesio/fix/sending-votes-wrong-stage' of github.com:Ch…
EclesioMeloJunior 98773ff
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 9edd8cf
wip: addressing comments
EclesioMeloJunior 6d2fdb8
wip: addressing comments/implementing service interface
EclesioMeloJunior 8d1af70
chore: introducing service pattern in grandpa pkg
EclesioMeloJunior 35b6cff
fix: runtime issue while running gossamer node
EclesioMeloJunior 42b8337
wip: getPrevotedBlock does not returns the supermajority prevoted block
EclesioMeloJunior cb2028f
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior eabb3b7
chore: introduce service arch in grandpa package + fix tests
EclesioMeloJunior db0d517
chore: fix lint + license
EclesioMeloJunior f4aa3ec
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 2dae537
chore: fix mocks
EclesioMeloJunior 241d2ba
fix: mocks
EclesioMeloJunior 2dc205e
chore: revert unneeded diffs
EclesioMeloJunior 0d3934d
chore: addressing comments
EclesioMeloJunior 558ce7a
chore: improve logs/errors
EclesioMeloJunior ee27001
chore: solve panic while running tests
EclesioMeloJunior 8c1c38d
chore(dot/rpc/modules): narrower `TransactionStateAPI` interface (#2863)
qdm12 6753022
chore(deps): bump github.com/breml/rootcerts from 0.2.7 to 0.2.8 (#2870)
dependabot[bot] e44e343
chore(deps): bump github.com/klauspost/compress from 1.15.10 to 1.15.…
dependabot[bot] 3ad50f4
chore(deps): bump github.com/jpillora/ipfilter from 1.2.7 to 1.2.8 (#…
dependabot[bot] 7ba3df6
chore: apply suggestions + fix tests
EclesioMeloJunior c4ffb5c
chore(lib/trie): split fuzz testing of the trie (#2653)
qdm12 39f51c0
chore(chain, cmd, dot): Change retain blocks type to be `uint32` (#2877)
axaysagathiya 3ddde15
fix(lib/babe): Unrestricted Loop When Building Blocks (GSR-19) (#2632)
edwardmack e522a25
Implement parachain inherents (#2566)
kishansagathiya 5e5bb4d
fix: gossip block announce only after block sucessfully imported
EclesioMeloJunior 98a70a4
chore: imported block could be a best block
EclesioMeloJunior 1665324
chore: fix lint warns
EclesioMeloJunior cc6a2c5
chore: simplify bool var, remove unneeded comment
EclesioMeloJunior 988653c
chore(lib/trie): `LoadFromMap` as function for transactional trie mut…
qdm12 ff14ea8
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 9186c58
chore: `VoteMessage` String method
EclesioMeloJunior 53f0c6d
chore: reverting deltas
EclesioMeloJunior 914c69d
chore: clear comment
EclesioMeloJunior 784ce07
chore: clear comment
EclesioMeloJunior ae392bb
Merge branch 'eclesio/fix/sending-votes-wrong-stage' of github.com:Ch…
EclesioMeloJunior c7adb22
chore: change error signature
EclesioMeloJunior fc716a7
chore: substantial changes to finalization handler
EclesioMeloJunior 0d8ec97
chore: only share neighbor message if authority
EclesioMeloJunior 587820d
chore: introduce mutexes, include `stop()` and add `default` to check…
EclesioMeloJunior 6f42798
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior b511a01
chore: apply suggested comments
EclesioMeloJunior edb0257
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 5f507c3
chore: fix license
EclesioMeloJunior 6e39c95
chore: fix lint warn
EclesioMeloJunior 03d9cb5
chore: fix mock gen at grandpa pakcage
EclesioMeloJunior fd892fd
chore: new mock due file rename
EclesioMeloJunior 9289b05
chore: fix test mock assertions
EclesioMeloJunior 8221689
chore: fix lint warns
EclesioMeloJunior 8182ba1
chore: remove unneeded function, remove wrapped errors
EclesioMeloJunior d068016
chore: use `continue` instead of `break`
EclesioMeloJunior 02bfc67
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 86a8559
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 5ff0378
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior cb18333
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior ec1fa3f
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 0e6d8de
chore: wip addressing comments
EclesioMeloJunior 2d16fae
chore: return a combined error when both services fail
EclesioMeloJunior 9edb9e8
chore: rename `timeoutStop` -> `timeout`
EclesioMeloJunior b0d27fb
chore: remove timeout inside `Stop` methods
EclesioMeloJunior e38972f
chore: improve `waitServices` comment
EclesioMeloJunior ed4ed1f
chore: simplify ephemeral services error channels
EclesioMeloJunior 842f9b1
chore: remove hot select by putting the check outside of the select stmt
EclesioMeloJunior 3c72c7b
chore: set `engineDone` to nil instead of `stopCh` in services defer
EclesioMeloJunior 9eff714
chore: inverting position
EclesioMeloJunior d1c4e89
chore: stopping the `determinePrevoteTimer` when we return early
EclesioMeloJunior b2f02d4
chore: remove unneeded call top stop
EclesioMeloJunior 80dffb0
chore: improving the error message
EclesioMeloJunior 8903d2f
chore: address comments
EclesioMeloJunior 6259c73
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 0da0f50
chore: remove changes in the trackers
EclesioMeloJunior 458397f
chore: link issue to todo mark
EclesioMeloJunior b661f42
chore: not needed deltas
EclesioMeloJunior c084684
chore: addressing comments
EclesioMeloJunior db8492f
chore: addressing comments
EclesioMeloJunior 64579ff
chore: checking errorCh in a blocking manner
EclesioMeloJunior 85148c1
chore: changing from `timer.After` to `time.Sleep`
EclesioMeloJunior 376267c
chore: rename `finalization_test` to `finalization_integration_test` …
EclesioMeloJunior ea98e88
chore: changing log level from `Warnf` to `Debugf`
EclesioMeloJunior 1d910f2
chore: ephemeral services rename `Start` to `Run`
EclesioMeloJunior 5fb2960
chore: comment around `errorCh` drain
EclesioMeloJunior 21d6cff
chore: simplify var declaration
EclesioMeloJunior 3cd9f81
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 88a15a0
chore: fix integration test ci packages
EclesioMeloJunior 7ac4121
chore: address lint warns
EclesioMeloJunior 16dffdd
chore: revert golang-ci lint to version `1.48`
EclesioMeloJunior f053524
chore: return error from `send(prevote|precommit)`
EclesioMeloJunior d8622e3
chore: returning an error instead of logging
EclesioMeloJunior 78d5f0f
chore: addressing testing problems
EclesioMeloJunior 4e733d3
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 03543bc
chore: fixing integration tests
EclesioMeloJunior f96b933
Merge branch 'eclesio/fix/sending-votes-wrong-stage' of github.com:Ch…
EclesioMeloJunior cd56533
chore: creating new consts and putting test in the parent scope
EclesioMeloJunior 469eff4
chore: remove `time.After` and let it hang
EclesioMeloJunior ba18277
chore: renaming err fields
EclesioMeloJunior 7bb0323
chore: instead of stopping the handler we stop the specific service
EclesioMeloJunior 1200174
chore: skip test being addressed by PR#2923
EclesioMeloJunior 128bcd7
chore: remove the amount of lines used in the `stop` method
EclesioMeloJunior 2a0daa3
chore: undo test skip
EclesioMeloJunior 22a41fe
chore: fix lint
EclesioMeloJunior 47d5c32
chore: remove unneeded defer code block
EclesioMeloJunior 7ed0b1d
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 6565bb5
chore: change `ErrBlockNumbersMismatch`
EclesioMeloJunior 211e275
chore: rename test
EclesioMeloJunior c21b42a
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior 61cbf57
chore: move tests to `finalization_test.go` remove unneeded `time.Sleep`
EclesioMeloJunior 9647301
chore: rename variables/struct names, using `fmt.Sprintf`
EclesioMeloJunior e355f38
chore: deref pointer in `verifyCommitMessageJustification`
EclesioMeloJunior 9944bf0
chore: create tests for message_tracker commits
EclesioMeloJunior d66f888
chore: remove all `.Time(1)` from tests
EclesioMeloJunior 0a838e5
chore: remove unneeded sleep
EclesioMeloJunior 458e2a2
chore: renaming
EclesioMeloJunior eb00b02
chore: remove global test variables
EclesioMeloJunior 96780f8
chore: add build tag
EclesioMeloJunior c5ebc53
chore: rename `finalization.go` to `finalisation.go`
EclesioMeloJunior 358fbbb
chore: fix tests
EclesioMeloJunior f3bb5a7
chore: remove unneeded comment
EclesioMeloJunior d32cf74
chore: fixing tests
EclesioMeloJunior eca3a2a
chore: make functions available
EclesioMeloJunior f00b53b
chore: avoid unexpected assertion
EclesioMeloJunior f6322b6
chore: address comments regards tests
EclesioMeloJunior bc70d65
chore: solving test issues
EclesioMeloJunior 7db3f31
Merge branch 'development' into eclesio/fix/sending-votes-wrong-stage
EclesioMeloJunior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.