From 73dd1536ed1b49eb435c93843eda899026232b0c Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 17 Feb 2018 15:09:06 -0800 Subject: [PATCH] lnwallet: update signdescriptor_test.go due to latest API changes --- lnwallet/signdescriptor_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lnwallet/signdescriptor_test.go b/lnwallet/signdescriptor_test.go index 4225665f..7a4be0fc 100644 --- a/lnwallet/signdescriptor_test.go +++ b/lnwallet/signdescriptor_test.go @@ -5,6 +5,7 @@ import ( "reflect" "testing" + "github.com/lightningnetwork/lnd/keychain" "github.com/roasbeef/btcd/btcec" "github.com/roasbeef/btcd/txscript" "github.com/roasbeef/btcd/wire" @@ -99,7 +100,13 @@ func TestSignDescriptorSerialization(t *testing.T) { if err != nil { 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. var buf bytes.Buffer