fundingmanager: Add max value to fundingmanager and fundingmanager_test

This commit is contained in:
vctt94
2018-08-29 18:39:22 -03:00
parent 6845763aa5
commit 2f6a8b13ae
3 changed files with 110 additions and 36 deletions

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