lnwallet+rpcserver: add no_publish flag to PSBT assembler

This commit is contained in:
Oliver Gugger authored and Conner Fromknecht committed 2020-07-08 17:12:57 -07:00
1 parent 3a818b9735
commit 258996233f
4 files changed
+39 -16

No files matched your search

+4 -4
View File
@@ -34,7 +34,7 @@ func TestPsbtIntent(t *testing.T) {
// Create a simple assembler and ask it to provision a channel to get
// the funding intent.
a := NewPsbtAssembler(chanCapacity, nil, &params)
a := NewPsbtAssembler(chanCapacity, nil, &params, true)
intent, err := a.ProvisionChannel(&Request{LocalAmt: chanCapacity})
if err != nil {
t.Fatalf("error provisioning channel: %v", err)
@@ -215,7 +215,7 @@ func TestPsbtIntentBasePsbt(t *testing.T) {
// Now as the next step, create a new assembler/intent pair with a base
// PSBT to see that we can add an additional output to it.
a := NewPsbtAssembler(chanCapacity, pendingPsbt, &params)
a := NewPsbtAssembler(chanCapacity, pendingPsbt, &params, true)
intent, err := a.ProvisionChannel(&Request{LocalAmt: chanCapacity})
if err != nil {
t.Fatalf("error provisioning channel: %v", err)
@@ -373,7 +373,7 @@ func TestPsbtVerify(t *testing.T) {
// Create a simple assembler and ask it to provision a channel to get
// the funding intent.
a := NewPsbtAssembler(chanCapacity, nil, &params)
a := NewPsbtAssembler(chanCapacity, nil, &params, true)
intent, err := a.ProvisionChannel(&Request{LocalAmt: chanCapacity})
if err != nil {
t.Fatalf("error provisioning channel: %v", err)
@@ -500,7 +500,7 @@ func TestPsbtFinalize(t *testing.T) {
// Create a simple assembler and ask it to provision a channel to get
// the funding intent.
a := NewPsbtAssembler(chanCapacity, nil, &params)
a := NewPsbtAssembler(chanCapacity, nil, &params, true)
intent, err := a.ProvisionChannel(&Request{LocalAmt: chanCapacity})
if err != nil {
t.Fatalf("error provisioning channel: %v", err)