Skip to content

Commit

Permalink
gossip/peer.Handshake can send valid networkId: all the peers are upg…
Browse files Browse the repository at this point in the history
…raded to accept it or zero-value
  • Loading branch information
rus-alex committed Nov 3, 2023
1 parent 19c1a95 commit 3e68832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func (p *peer) Handshake(network uint64, progress PeerProgress, genesis common.H
// send both HandshakeMsg and ProgressMsg
err := p2p.Send(p.rw, HandshakeMsg, &handshakeData{
ProtocolVersion: uint32(p.version),
NetworkID: 0, // TODO: set to `network` after all nodes updated to #184
NetworkID: network,
Genesis: genesis,
})
if err != nil {
Expand Down

0 comments on commit 3e68832

Please sign in to comment.