lnwallet/script_utils_test: use exposed CommitScriptUnencumbered
This commit is contained in:
parent
afd8dfb9b4
commit
1eba460a2c
@ -90,7 +90,7 @@ func TestCommitmentSpendValidation(t *testing.T) {
|
||||
|
||||
// We're testing an uncooperative close, output sweep, so construct a
|
||||
// transaction which sweeps the funds to a random address.
|
||||
targetOutput, err := commitScriptUnencumbered(aliceKeyPub)
|
||||
targetOutput, err := CommitScriptUnencumbered(aliceKeyPub)
|
||||
if err != nil {
|
||||
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
|
||||
// Alice broadcasts this commitment transaction.
|
||||
bobScriptP2WKH, err := commitScriptUnencumbered(bobPayKey)
|
||||
bobScriptP2WKH, err := CommitScriptUnencumbered(bobPayKey)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create bob p2wkh script: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user