Merge pull request #1365 from sanimej/gossip

Do not create network entry for the local node in the db based on peer's state sync.
This commit is contained in:
Madhu Venugopal 2016-08-02 14:49:44 -07:00 committed by GitHub
commit c9eb73fccc
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ func (nDB *NetworkDB) handleNetworkEvent(nEvent *NetworkEvent) bool {
nDB.Lock()
defer nDB.Unlock()
if nEvent.NodeName == nDB.config.NodeName {
return false
}
nodeNetworks, ok := nDB.networks[nEvent.NodeName]
if !ok {
// We haven't heard about this node at all. Ignore the leave