mempool: reserve IDs in InitPeer instead of AddPeer

This commit is contained in:
Tess Rinearson
2020-04-03 17:17:36 +04:00
committed by Anton Kaliaev
parent e6a7757bb4
commit ffb0278d95
5 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ func NewPEXReactor(b AddrBook, config *PEXReactorConfig) *PEXReactor {
lastReceivedRequests: cmn.NewCMap(),
crawlPeerInfos: make(map[p2p.ID]crawlPeerInfo),
}
r.BaseReactor = *p2p.NewBaseReactor("PEXReactor", r)
r.BaseReactor = *p2p.NewBaseReactor("PEX", r)
return r
}