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:
parent
5ff82c92da
commit
815826caac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user