mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
lntest/harness: let OpenChannel take 'private' parameter
This commit is contained in:
parent
000a83bc04
commit
a5f7c4872b
1 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ func (n *NetworkHarness) WaitForTxBroadcast(ctx context.Context, txid chainhash.
|
|||
// received, an error is returned.
|
||||
func (n *NetworkHarness) OpenChannel(ctx context.Context,
|
||||
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.
|
||||
// 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[:],
|
||||
LocalFundingAmount: int64(amt),
|
||||
PushSat: int64(pushAmt),
|
||||
Private: false,
|
||||
Private: private,
|
||||
}
|
||||
|
||||
respStream, err := srcNode.OpenChannel(ctx, openReq)
|
||||
|
|
Loading…
Add table
Reference in a new issue