mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-29 17:19:33 +02:00
server: add min_htlc_msat parameter to OpenChannel method
This commit is contained in:
parent
59b331c04d
commit
84e5adcdd0
@ -1495,6 +1495,8 @@ type openChanReq struct {
|
|||||||
|
|
||||||
private bool
|
private bool
|
||||||
|
|
||||||
|
minHtlc lnwire.MilliSatoshi
|
||||||
|
|
||||||
// TODO(roasbeef): add ability to specify channel constraints as well
|
// TODO(roasbeef): add ability to specify channel constraints as well
|
||||||
|
|
||||||
updates chan *lnrpc.OpenStatusUpdate
|
updates chan *lnrpc.OpenStatusUpdate
|
||||||
@ -1612,6 +1614,7 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {
|
|||||||
// NOTE: This function is safe for concurrent access.
|
// NOTE: This function is safe for concurrent access.
|
||||||
func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
||||||
localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi,
|
localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi,
|
||||||
|
minHtlc lnwire.MilliSatoshi,
|
||||||
fundingFeePerByte btcutil.Amount,
|
fundingFeePerByte btcutil.Amount,
|
||||||
private bool) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
private bool) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
||||||
|
|
||||||
@ -1674,6 +1677,7 @@ func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
|||||||
fundingFeePerWeight: fundingFeePerWeight,
|
fundingFeePerWeight: fundingFeePerWeight,
|
||||||
pushAmt: pushAmt,
|
pushAmt: pushAmt,
|
||||||
private: private,
|
private: private,
|
||||||
|
minHtlc: minHtlc,
|
||||||
updates: updateChan,
|
updates: updateChan,
|
||||||
err: errChan,
|
err: errChan,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user