p2p/addrbook: fix addToOldBucket

This commit is contained in:
Ethan Buchman
2017-11-16 04:08:46 +00:00
parent 435eb6e2b3
commit 40e93a5f9e
2 changed files with 4 additions and 2 deletions

View File

@ -475,7 +475,7 @@ func (a *AddrBook) addToOldBucket(ka *knownAddress, bucketIdx int) bool {
}
addrStr := ka.Addr.String()
bucket := a.getBucket(bucketTypeNew, bucketIdx)
bucket := a.getBucket(bucketTypeOld, bucketIdx)
// Already exists?
if _, ok := bucket[addrStr]; ok {