lnwallet/script_utils_test: use exposed CommitScriptUnencumbered

This commit is contained in:
Conner Fromknecht 2018-07-11 15:04:26 -07:00 committed by Conner Fromknecht
parent afd8dfb9b4
commit 1eba460a2c
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -90,7 +90,7 @@ func TestCommitmentSpendValidation(t *testing.T) {
// We're testing an uncooperative close, output sweep, so construct a // We're testing an uncooperative close, output sweep, so construct a
// transaction which sweeps the funds to a random address. // transaction which sweeps the funds to a random address.
targetOutput, err := commitScriptUnencumbered(aliceKeyPub) targetOutput, err := CommitScriptUnencumbered(aliceKeyPub)
if err != nil { if err != nil {
t.Fatalf("unable to create target output: %v", err) t.Fatalf("unable to create target output: %v", err)
} }
@ -186,7 +186,7 @@ func TestCommitmentSpendValidation(t *testing.T) {
// Finally, we test bob sweeping his output as normal in the case that // Finally, we test bob sweeping his output as normal in the case that
// Alice broadcasts this commitment transaction. // Alice broadcasts this commitment transaction.
bobScriptP2WKH, err := commitScriptUnencumbered(bobPayKey) bobScriptP2WKH, err := CommitScriptUnencumbered(bobPayKey)
if err != nil { if err != nil {
t.Fatalf("unable to create bob p2wkh script: %v", err) t.Fatalf("unable to create bob p2wkh script: %v", err)
} }