This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
implement bitfield distribution subsystem #1368
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
31cb1ad
feat bitfield distribution
drahnr ddb6228
feat bitfield distribution part 2
drahnr 6ac2c62
pair programming with rustc & cargo
drahnr 4b100df
lets go
drahnr a3bd8c0
move bitfield-distribution to the node/network folder
drahnr 7909d47
shape shifting
drahnr e3c8248
lunchtime
drahnr 86f4fdb
ignore the two fn recursion for now
drahnr 3cf0878
step by step
drahnr 6a6d7bc
triplesteps
drahnr 1aa1842
bandaid commit
drahnr ad0555b
unordered futures magic
drahnr 7966769
chore
drahnr e8c901a
reword markdown
drahnr e33dafe
clarify
drahnr 6594dee
lacks abortable processing impl details
drahnr 4c6f9b4
slimify
drahnr af2849b
fix: warnings and avoid ctx.clone() improve comments
drahnr 977102b
review comments
drahnr 92431f3
fix details
drahnr 23c050e
make sure outgoing messages are tracked
drahnr a431601
fix name
drahnr a5077ee
Merge remote-tracking branch 'origin/master' into bernhard-bitfield-d…
drahnr be2533e
fix subsystem
drahnr 64b6ec1
partial test impl
drahnr 52d9800
relax context bounds
drahnr df8fe1d
test
drahnr 38661f7
X
drahnr f1f7cab
X
drahnr f94b8c5
initial test
drahnr 7a4bd5e
fix relay_message not tracked when origin is self
drahnr b299ad3
fix/guide: grammar
drahnr 09766c1
work around missing Eq+PartialEq
drahnr df7a6f0
fix: add missing message to provisioner
drahnr 2398681
unify per_job to job_data
drahnr 8ed8aba
fix/review: part one
drahnr 65e8edb
fix/review: more grumbles
drahnr 087784a
fix/review: track incoming messages per peer
drahnr d91bcbd
fix/review: extract fn, avoid nested matches
drahnr c957bf9
fix/review: more tests, simplify test
drahnr 36a6672
fix/review: extend tests to cover more cases
drahnr 5b7c963
chore/rename: Tracker -> ProtocolState
drahnr 794c6c3
chore check and comment rewording
drahnr f3a718e
feat test: invalid peer message
drahnr e33e943
remove ignored test cases and unused macros
drahnr b8d3941
Merge remote-tracking branch 'origin/master' into bernhard-bitfield-d…
drahnr 99f574e
fix master merge fallout + warnings
drahnr 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
review comments
- Loading branch information
commit 977102b1630c06c59e270a6e48c18404621c4c20
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also have a check that the peer hasn't yet seen anything by that validator, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(a malicious validator could issue 2+ bitfields and introduce them at separate points of the network. if we lie on that boundary, the peer may send us 1 and we would send them the other). I think we need to track if the peer has already sent us a bitfield per validator so we can punish them if they ever send another. And then we should track if we've sent a bitfield per validator.
We don't do equivocation reporting or anything like that for bitfields, though.