lnwallet+rpcserver: add no_publish flag to PSBT assembler
This commit is contained in:
1 parent
3a818b9735
commit
258996233f
4 files changed
+39
-16
No files matched your search
@@ -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, ¶ms)
|
||||
a := NewPsbtAssembler(chanCapacity, nil, ¶ms, 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, ¶ms)
|
||||
a := NewPsbtAssembler(chanCapacity, pendingPsbt, ¶ms, 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, ¶ms)
|
||||
a := NewPsbtAssembler(chanCapacity, nil, ¶ms, 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, ¶ms)
|
||||
a := NewPsbtAssembler(chanCapacity, nil, ¶ms, true)
|
||||
intent, err := a.ProvisionChannel(&Request{LocalAmt: chanCapacity})
|
||||
if err != nil {
|
||||
t.Fatalf("error provisioning channel: %v", err)
|
||||
|
||||
Reference in new issue
Block a user