Fix tests after IsForNet addition to btcutil.Address interface.
dhill pointed this out to me.
This commit is contained in:
parent
da1fcc6dbd
commit
201d6651c9
1 changed files with 5 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue