lnwallet: remove public LocalAvailableBalance method from channel

This commit removes the current active LocalAvailableBalance method
from the channel state machine itself. We still maintain the internal
availableLocalBalance method locally as this is used to ensure that we
don’t add an HTLC which puts our available balance below zero.
This commit is contained in:
Olaoluwa Osuntokun 2017-09-24 20:13:02 -07:00
parent 5ff82c92da
commit 815826caac
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -2846,15 +2846,6 @@ func (lc *LightningChannel) RevokeCurrentCommitment() (*lnwire.RevokeAndAck, err
return revocationMsg, nil
}
// LocalAvailableBalance returns the amount of available money which might be
// proceed by this channel at the specific point of time.
func (lc *LightningChannel) LocalAvailableBalance() lnwire.MilliSatoshi {
lc.Lock()
defer lc.Unlock()
return lc.availableLocalBalance
}
// ReceiveRevocation processes a revocation sent by the remote party for the
// lowest unrevoked commitment within their commitment chain. We receive a
// revocation either during the initial session negotiation wherein revocation