lntest/harness: let OpenChannel take 'private' parameter
This commit is contained in:
parent
000a83bc04
commit
a5f7c4872b
@ -469,7 +469,7 @@ func (n *NetworkHarness) WaitForTxBroadcast(ctx context.Context, txid chainhash.
|
|||||||
// received, an error is returned.
|
// received, an error is returned.
|
||||||
func (n *NetworkHarness) OpenChannel(ctx context.Context,
|
func (n *NetworkHarness) OpenChannel(ctx context.Context,
|
||||||
srcNode, destNode *HarnessNode, amt btcutil.Amount,
|
srcNode, destNode *HarnessNode, amt btcutil.Amount,
|
||||||
pushAmt btcutil.Amount) (lnrpc.Lightning_OpenChannelClient, error) {
|
pushAmt btcutil.Amount, private bool) (lnrpc.Lightning_OpenChannelClient, error) {
|
||||||
|
|
||||||
// Wait until srcNode and destNode have the latest chain synced.
|
// Wait until srcNode and destNode have the latest chain synced.
|
||||||
// Otherwise, we may run into a check within the funding manager that
|
// Otherwise, we may run into a check within the funding manager that
|
||||||
@ -486,7 +486,7 @@ func (n *NetworkHarness) OpenChannel(ctx context.Context,
|
|||||||
NodePubkey: destNode.PubKey[:],
|
NodePubkey: destNode.PubKey[:],
|
||||||
LocalFundingAmount: int64(amt),
|
LocalFundingAmount: int64(amt),
|
||||||
PushSat: int64(pushAmt),
|
PushSat: int64(pushAmt),
|
||||||
Private: false,
|
Private: private,
|
||||||
}
|
}
|
||||||
|
|
||||||
respStream, err := srcNode.OpenChannel(ctx, openReq)
|
respStream, err := srcNode.OpenChannel(ctx, openReq)
|
||||||
|
Loading…
Reference in New Issue
Block a user