p2p/discover: write the basic tests, catch RLP bug

This commit is contained in:
Péter Szilágyi
2015-04-27 12:33:06 +03:00
parent 0201c04b95
commit 8de8f61d36
3 changed files with 150 additions and 8 deletions

View File

@ -307,7 +307,7 @@ func (tab *Table) pingpong(w *bondproc, pinged bool, id NodeID, addr *net.UDPAdd
TCPPort: int(tcpPort),
}
tab.db.updateNode(w.n)
tab.db.updateLastBond(id, time.Now())
tab.db.updateLastPong(id, time.Now())
close(w.done)
}