Fix tests after IsForNet addition to btcutil.Address interface.

dhill pointed this out to me.
This commit is contained in:
Owain G. Ainsworth 2014-03-13 17:20:45 +00:00
parent da1fcc6dbd
commit 201d6651c9

View file

@ -2863,6 +2863,11 @@ func (b *bogusAddress) ScriptAddress() []byte {
return []byte{}
}
// IsForNet lies blatantly to satisfy the btcutil.Address interface.
func (b *bogusAddress) IsForNet(btcwire.BitcoinNet) bool {
return true // why not?
}
func TestPayToAddrScript(t *testing.T) {
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{