lnwallet: update signdescriptor_test.go due to latest API changes
This commit is contained in:
parent
9ccdcaf747
commit
73dd1536ed
@ -5,6 +5,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/lightningnetwork/lnd/keychain"
|
||||||
"github.com/roasbeef/btcd/btcec"
|
"github.com/roasbeef/btcd/btcec"
|
||||||
"github.com/roasbeef/btcd/txscript"
|
"github.com/roasbeef/btcd/txscript"
|
||||||
"github.com/roasbeef/btcd/wire"
|
"github.com/roasbeef/btcd/wire"
|
||||||
@ -99,7 +100,13 @@ func TestSignDescriptorSerialization(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to parse pubkey: %v", err)
|
t.Fatalf("unable to parse pubkey: %v", err)
|
||||||
}
|
}
|
||||||
sd.PubKey = pubkey
|
sd.KeyDesc = keychain.KeyDescriptor{
|
||||||
|
KeyLocator: keychain.KeyLocator{
|
||||||
|
Family: 50,
|
||||||
|
Index: 99,
|
||||||
|
},
|
||||||
|
PubKey: pubkey,
|
||||||
|
}
|
||||||
|
|
||||||
// Test that serialize -> deserialize yields same result as original.
|
// Test that serialize -> deserialize yields same result as original.
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user