fundingmanager: Add max value to fundingmanager and fundingmanager_test

This commit is contained in:
vctt94 committed 2020-07-03 11:09:40 -03:00
1 parent 6845763aa5
commit 2f6a8b13ae
3 files changed
+110 -36

No files matched your search

+1 -1
View File
@@ -1710,7 +1710,7 @@ func (r *rpcServer) parseOpenChannelReq(in *lnrpc.OpenChannelRequest,
remoteInitialBalance := btcutil.Amount(in.PushSat)
minHtlcIn := lnwire.MilliSatoshi(in.MinHtlcMsat)
remoteCsvDelay := uint16(in.RemoteCsvDelay)
maxValue := lnwire.MilliSatoshi(in.MaxValueInFlight)
maxValue := lnwire.MilliSatoshi(in.RemoteMaxValueInFlightMsat)
// Ensure that the initial balance of the remote party (if pushing
// satoshis) does not exceed the amount the local party has requested