test: add ability to push funds during funding to OpenChannel
This commit adds support for pushing funds during the funding process to the helper method in the integration testing framework. Additionally, we also modify the simple testBasicChannelFunding test to also push over an amount in order to test the functionality within the daemon.
This commit is contained in:
2 files changed
+47
-18
No files matched your search
+2
-1
@@ -648,11 +648,12 @@ func (n *networkHarness) WaitForTxBroadcast(ctx context.Context, txid chainhash.
|
||||
// received, an error is returned.
|
||||
func (n *networkHarness) OpenChannel(ctx context.Context,
|
||||
srcNode, destNode *lightningNode, amt btcutil.Amount,
|
||||
numConfs uint32) (lnrpc.Lightning_OpenChannelClient, error) {
|
||||
pushAmt btcutil.Amount, numConfs uint32) (lnrpc.Lightning_OpenChannelClient, error) {
|
||||
|
||||
openReq := &lnrpc.OpenChannelRequest{
|
||||
NodePubkey: destNode.PubKey[:],
|
||||
LocalFundingAmount: int64(amt),
|
||||
PushSat: int64(pushAmt),
|
||||
NumConfs: numConfs,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user