-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add P2P gossip_bp_peer message #1245
Comments
heifner
added a commit
that referenced
this issue
Mar 12, 2025
heifner
added a commit
that referenced
this issue
Mar 14, 2025
heifner
added a commit
that referenced
this issue
Mar 14, 2025
heifner
added a commit
that referenced
this issue
Mar 14, 2025
heifner
added a commit
that referenced
this issue
Mar 17, 2025
heifner
added a commit
that referenced
this issue
Mar 17, 2025
…er than anything in net_plugin. Empty p2p-server-address should not be allowed.
heifner
added a commit
that referenced
this issue
Mar 17, 2025
heifner
added a commit
that referenced
this issue
Mar 19, 2025
heifner
added a commit
that referenced
this issue
Mar 19, 2025
heifner
added a commit
that referenced
this issue
Mar 19, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
heifner
added a commit
that referenced
this issue
Mar 21, 2025
…peers Update to latest system contract changes.
heifner
added a commit
that referenced
this issue
Mar 25, 2025
heifner
added a commit
that referenced
this issue
Mar 25, 2025
heifner
added a commit
that referenced
this issue
Mar 26, 2025
heifner
added a commit
that referenced
this issue
Mar 26, 2025
heifner
added a commit
that referenced
this issue
Mar 26, 2025
heifner
added a commit
that referenced
this issue
Mar 26, 2025
heifner
added a commit
that referenced
this issue
Mar 26, 2025
heifner
added a commit
that referenced
this issue
Mar 27, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add new gossip_bp_peer message for sending bp peer connection information.
P2P: Auto-management of Private BP connections
The current
p2p-auto-bp-peer
feature is not useful for Savanna consensus as it only maintains connections to immediate BPs in the schedule. With Savanna consensus, connection to all finalizers (currently BPs) is required. See #1227, fixed by #1244.Update
p2p-auto-bp-peer
to maintain connections to the top 21 BPs.p2p-auto-bp-peer
then the feature is activated. Thep2p-auto-bp-peer
list is used to bootstrap the process.p2p-peer-address
entries will also be included if they are bp peers; established by thegossip_bp_peer
handshake.Add gossip of connections to verifiable BP peers.
New P2P gossip message
p2p-signature-provider
will verify receivedgossip_bp_peers
and send outgossip_bp_peers
if any new peers received.gossip_bp_peers
message only sent to verified gossip bp peers.bp_peer
entry where all peers can't be connected to and verified as a bp peer is dropped from tracked state. This is how no longer validbp_peer
entries are removed.server_address
allows for one BP to have a number of peers and backup peers. A limit of 4bp_peer
entries is allowed per producer_name. Theserver_address
acts to distinguish between them.p2p-peer-address
peers will also be used for bootstrapping as long as onep2p-auto-bp-peer
is configured and will always be connected; subject to thep2p-peer-limit
. Thep2p-peer-limit
only applies top2p-peer-address
, not to gossip bp peers.p2p-signature-provider
andp2p-auto-bp-peer
then send a signed emptygossip_bp_peer
.gossip_bp_peers
with new information it will send the new merged gossip_bp_peers to all of its previously verified bp gossip peers.Gossip peers will remain connected when the associated proposer/finalizer is in the top 21.
When a
p2p-auto-bp-peer
rotates into the the top 21 then it will connect to itsp2p-auto-bp-peer
s and send an emptygossip_bp_peers
to have currentgossip_bp_peers
sent back to it.When a node rotates out of the top 21 then peers will disconnect from it unless they explicitly connected via
p2p-peer-address
. Also the bp peer that rotated out will itself disconnect from any bp peers and wait to be rotated back in before participating in the bp peer gossip.The on-chain peer list can be queried every block. If a version can be quickly queried this is likely the easiest and quickest method. Only bp peer nodes need to make this state query. See Retrieval of peers public keys from chainbase db. #1228.
The text was updated successfully, but these errors were encountered: