mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-29 16:31:25 +00:00
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{}
|
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) {
|
func TestPayToAddrScript(t *testing.T) {
|
||||||
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
|
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
|
||||||
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{
|
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{
|
||||||
|
|
Loading…
Add table
Reference in a new issue