lntest/itest: adds tests for fundmax flag of cli:openchannel
This commit is contained in:
1 parent
b9bded33d1
commit
d7f578b0d9
4 files changed
+297
No files matched your search
@@ -886,6 +886,10 @@ type OpenChannelParams struct {
|
||||
// If set to false it avoids applying a fee rate of 0 and instead
|
||||
// activates the default configured fee rate.
|
||||
UseFeeRate bool
|
||||
|
||||
// FundMax is a boolean indicating whether the channel should be funded
|
||||
// with the maximum possible amount from the wallet.
|
||||
FundMax bool
|
||||
}
|
||||
|
||||
// prepareOpenChannel waits for both nodes to be synced to chain and returns an
|
||||
@@ -926,6 +930,7 @@ func (h *HarnessTest) prepareOpenChannel(srcNode, destNode *node.HarnessNode,
|
||||
FeeRate: p.FeeRate,
|
||||
UseBaseFee: p.UseBaseFee,
|
||||
UseFeeRate: p.UseFeeRate,
|
||||
FundMax: p.FundMax,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user