lntest/harness: let OpenChannel take 'private' parameter

This commit is contained in:
Johan T. Halseth 2017-12-19 00:07:11 +01:00 committed by Olaoluwa Osuntokun
parent 000a83bc04
commit a5f7c4872b
1 changed files with 2 additions and 2 deletions

View File

@ -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)