lnd: remove sid arg to UpdateShortChanID

This commit is contained in:
Conner Fromknecht 2018-05-07 21:21:17 -07:00
parent 57551fbd74
commit d6628574ca
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

6
lnd.go
View File

@ -460,11 +460,9 @@ func lndMain() error {
// the chain arb so it can react to on-chain events. // the chain arb so it can react to on-chain events.
return server.chainArb.WatchNewChannel(channel) return server.chainArb.WatchNewChannel(channel)
}, },
ReportShortChanID: func(chanPoint wire.OutPoint, ReportShortChanID: func(chanPoint wire.OutPoint) error {
sid lnwire.ShortChannelID) error {
cid := lnwire.NewChanIDFromOutPoint(&chanPoint) cid := lnwire.NewChanIDFromOutPoint(&chanPoint)
return server.htlcSwitch.UpdateShortChanID(cid, sid) return server.htlcSwitch.UpdateShortChanID(cid)
}, },
RequiredRemoteChanReserve: func(chanAmt btcutil.Amount) btcutil.Amount { RequiredRemoteChanReserve: func(chanAmt btcutil.Amount) btcutil.Amount {
// By default, we'll require the remote peer to maintain // By default, we'll require the remote peer to maintain