Skip to content

Commit d46ac6c

Browse files
authored
Implement gossipsub IDONTWANT (#5422)
* move gossipsub into a separate crate * Merge branch 'unstable' of github.com:sigp/lighthouse into separate-gossipsub * update rpc.proto and generate rust bindings * gossipsub: implement IDONTWANT messages * address review * move GossipPromises out of PeerScore * impl PeerKind::is_gossipsub that returns true if peer speaks any version of gossipsub * address review 2 * Merge branch 'separate-gossipsub' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * Merge branch 'unstable' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * add metrics * add tests * make 1.2 beta before spec is merged * Merge branch 'unstable' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * cargo clippy * Collect decoded IDONTWANT messages * Use the beta tag in most places to simplify the transition * Fix failed test by using fresh message-ids * Gossipsub v1.2-beta * Merge latest unstable * Cargo update * Merge pull request #5 from ackintosh/impl-gossipsub-idontwant-ackintosh-fix-test Fix `test_ignore_too_many_messages_in_ihave` test * Merge branch 'unstable' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * update CHANGELOG.md * remove beta for 1.2 IDONTWANT spec has been merged * Merge branch 'unstable' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * Merge branch 'impl-gossipsub-idontwant' of github.com:jxs/lighthouse into impl-gossipsub-idontwant * Merge branch 'unstable' of github.com:sigp/lighthouse into impl-gossipsub-idontwant * improve comments wording * Merge branch 'impl-gossipsub-idontwant' of github.com:jxs/lighthouse into impl-gossipsub-idontwant
1 parent 2e2ccec commit d46ac6c

File tree

13 files changed

+533
-48
lines changed

13 files changed

+533
-48
lines changed

Cargo.lock

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fnv = "1"
126126
fs2 = "0.4"
127127
futures = "0.3"
128128
hex = "0.4"
129+
hashlink = "0.9.0"
129130
hyper = "1"
130131
itertools = "0.10"
131132
lazy_static = "1"

beacon_node/lighthouse_network/gossipsub/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 0.5 Sigma Prime fork
22

3+
- Implement IDONTWANT messages as per [spec](https://github.com/libp2p/specs/pull/548).
4+
See [PR 5422](https://github.com/sigp/lighthouse/pull/5422)
5+
36
- Attempt to publish to at least mesh_n peers when publishing a message when flood publish is disabled.
47
See [PR 5357](https://github.com/sigp/lighthouse/pull/5357).
58
- Drop `Publish` and `Forward` gossipsub stale messages when polling ConnectionHandler.

beacon_node/lighthouse_network/gossipsub/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ futures = "0.3.30"
2424
futures-ticker = "0.0.3"
2525
futures-timer = "3.0.2"
2626
getrandom = "0.2.12"
27+
hashlink.workspace = true
2728
hex_fmt = "0.3.0"
2829
libp2p = { version = "0.53", default-features = false }
2930
quick-protobuf = "0.8"

0 commit comments

Comments
 (0)