From be4db0ebcaee422a825ebc5b8a38cda1d4aa03d5 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Dec 2019 20:00:09 -0800 Subject: [PATCH] lntest: add optional FundingShim field to OpenChannelParams --- lntest/harness.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lntest/harness.go b/lntest/harness.go index 524177504..50376eb7b 100644 --- a/lntest/harness.go +++ b/lntest/harness.go @@ -844,6 +844,10 @@ type OpenChannelParams struct { // MinHtlc is the htlc_minimum_msat value set when opening the channel. MinHtlc lnwire.MilliSatoshi + + // FundingShim is an optional funding shim that the caller can specify + // in order to modify the channel funding workflow. + FundingShim *lnrpc.FundingShim } // OpenChannel attempts to open a channel between srcNode and destNode with the @@ -879,6 +883,7 @@ func (n *NetworkHarness) OpenChannel(ctx context.Context, MinConfs: minConfs, SpendUnconfirmed: p.SpendUnconfirmed, MinHtlcMsat: int64(p.MinHtlc), + FundingShim: p.FundingShim, } respStream, err := srcNode.OpenChannel(ctx, openReq)