From 201d6651c983565947abf35f1af108ed98d06809 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Thu, 13 Mar 2014 17:20:45 +0000 Subject: [PATCH] Fix tests after IsForNet addition to btcutil.Address interface. dhill pointed this out to me. --- script_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script_test.go b/script_test.go index 337a2f04..d1eb604e 100644 --- a/script_test.go +++ b/script_test.go @@ -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{