p2p: push handshake containing chainId for early disconnect. Closes #12

This commit is contained in:
Ethan Buchman
2015-03-17 01:20:39 -07:00
committed by Jae Kwon
parent 9c4692c071
commit 4abca6e963
3 changed files with 36 additions and 3 deletions

View File

@ -65,6 +65,7 @@ func NewNode() *Node {
}
sw := p2p.NewSwitch([]p2p.Reactor{pexReactor, mempoolReactor, consensusReactor})
sw.SetChainId(state.Hash(), config.App().GetString("Network"))
return &Node{
sw: sw,