mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-13 07:37:22 +01:00
Merge pull request #840 from halseth/openchannel-csv-delay
Add CSV delay flag to openchannel
This commit is contained in:
10
server.go
10
server.go
@@ -1740,6 +1740,8 @@ type openChanReq struct {
|
||||
|
||||
minHtlc lnwire.MilliSatoshi
|
||||
|
||||
remoteCsvDelay uint16
|
||||
|
||||
// TODO(roasbeef): add ability to specify channel constraints as well
|
||||
|
||||
updates chan *lnrpc.OpenStatusUpdate
|
||||
@@ -1862,10 +1864,9 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {
|
||||
//
|
||||
// NOTE: This function is safe for concurrent access.
|
||||
func (s *server) OpenChannel(nodeKey *btcec.PublicKey,
|
||||
localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi,
|
||||
minHtlc lnwire.MilliSatoshi,
|
||||
fundingFeePerVSize lnwallet.SatPerVByte,
|
||||
private bool) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
||||
localAmt btcutil.Amount, pushAmt, minHtlc lnwire.MilliSatoshi,
|
||||
fundingFeePerVSize lnwallet.SatPerVByte, private bool,
|
||||
remoteCsvDelay uint16) (chan *lnrpc.OpenStatusUpdate, chan error) {
|
||||
|
||||
updateChan := make(chan *lnrpc.OpenStatusUpdate, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -1919,6 +1920,7 @@ func (s *server) OpenChannel(nodeKey *btcec.PublicKey,
|
||||
pushAmt: pushAmt,
|
||||
private: private,
|
||||
minHtlc: minHtlc,
|
||||
remoteCsvDelay: remoteCsvDelay,
|
||||
updates: updateChan,
|
||||
err: errChan,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user