mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
lntest: add optional FundingShim field to OpenChannelParams
This commit is contained in:
parent
bc176b5aa3
commit
be4db0ebca
@ -844,6 +844,10 @@ type OpenChannelParams struct {
|
|||||||
|
|
||||||
// MinHtlc is the htlc_minimum_msat value set when opening the channel.
|
// MinHtlc is the htlc_minimum_msat value set when opening the channel.
|
||||||
MinHtlc lnwire.MilliSatoshi
|
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
|
// 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,
|
MinConfs: minConfs,
|
||||||
SpendUnconfirmed: p.SpendUnconfirmed,
|
SpendUnconfirmed: p.SpendUnconfirmed,
|
||||||
MinHtlcMsat: int64(p.MinHtlc),
|
MinHtlcMsat: int64(p.MinHtlc),
|
||||||
|
FundingShim: p.FundingShim,
|
||||||
}
|
}
|
||||||
|
|
||||||
respStream, err := srcNode.OpenChannel(ctx, openReq)
|
respStream, err := srcNode.OpenChannel(ctx, openReq)
|
||||||
|
Loading…
Reference in New Issue
Block a user