pchain-org / pchain

Pchain client-in-Go
https://plian.org
GNU General Public License v3.0
24 stars 12 forks source link

the peerstate changed after peer reset #13

Open pchain-org opened 6 years ago

pchain-org commented 6 years ago

When AddPeer(), one 'peerstate' is set to 'peer.Data'

then this 'peerstate' is using by gossipXXX() functions

And infact, the peer could be reset during runing, and the previous 'peerstate' is out of date. But it is still using as the parameter.

keep an eye on this.