1 // Copyright (c) 2013-2015 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
10 "github.com/btcsuite/btcd/wire"
13 func TstKnownAddressIsBad(ka *KnownAddress) bool {
17 func TstKnownAddressChance(ka *KnownAddress) float64 {
21 func TstNewKnownAddress(na *wire.NetAddress, attempts int,
22 lastattempt, lastsuccess time.Time, tried bool, refs int) *KnownAddress {
23 return &KnownAddress{na: na, attempts: attempts, lastattempt: lastattempt,
24 lastsuccess: lastsuccess, tried: tried, refs: refs}