server: add remoteCsvDelay to openChanReq
This commit is contained in:
parent
00ed95b414
commit
6f98803967
10
server.go
10
server.go
@ -1679,6 +1679,8 @@ type openChanReq struct {
|
|||||||
|
|
||||||
minHtlc lnwire.MilliSatoshi
|
minHtlc lnwire.MilliSatoshi
|
||||||
|
|
||||||
|
remoteCsvDelay uint16
|
||||||
|
|
||||||
// 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
|
||||||
@ -1799,10 +1801,9 @@ 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(nodeKey *btcec.PublicKey,
|
func (s *server) OpenChannel(nodeKey *btcec.PublicKey,
|
||||||
localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi,
|
localAmt btcutil.Amount, pushAmt, minHtlc lnwire.MilliSatoshi,
|
||||||
minHtlc lnwire.MilliSatoshi,
|
fundingFeePerVSize lnwallet.SatPerVByte, private bool,
|
||||||
fundingFeePerVSize lnwallet.SatPerVByte,
|
remoteCsvDelay uint16) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
||||||
private bool) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
|
||||||
|
|
||||||
updateChan := make(chan *lnrpc.OpenStatusUpdate, 1)
|
updateChan := make(chan *lnrpc.OpenStatusUpdate, 1)
|
||||||
errChan := make(chan error, 1)
|
errChan := make(chan error, 1)
|
||||||
@ -1856,6 +1857,7 @@ func (s *server) OpenChannel(nodeKey *btcec.PublicKey,
|
|||||||
pushAmt: pushAmt,
|
pushAmt: pushAmt,
|
||||||
private: private,
|
private: private,
|
||||||
minHtlc: minHtlc,
|
minHtlc: minHtlc,
|
||||||
|
remoteCsvDelay: remoteCsvDelay,
|
||||||
updates: updateChan,
|
updates: updateChan,
|
||||||
err: errChan,
|
err: errChan,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user