lntest/harness: let OpenChannel take 'private' parameter

This commit is contained in:
Johan T. Halseth authored and Olaoluwa Osuntokun committed 2018-01-06 17:21:49 -08:00
1 parent 000a83bc04
commit a5f7c4872b
1 file changed
+2 -2
+2 -2
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)