channeldb+lnwallet: note that balance is after subtracting commit fee
It was incorrectly stated that the commitment balance was before subctracting the commit fee, which led to some confusion.
This commit is contained in:
parent
22e1f006b1
commit
2c46640dd0
@ -320,10 +320,14 @@ type ChannelCommitment struct {
|
||||
|
||||
// LocalBalance is the current available settled balance within the
|
||||
// channel directly spendable by us.
|
||||
//
|
||||
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||
LocalBalance lnwire.MilliSatoshi
|
||||
|
||||
// RemoteBalance is the current available settled balance within the
|
||||
// channel directly spendable by the remote node.
|
||||
//
|
||||
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||
RemoteBalance lnwire.MilliSatoshi
|
||||
|
||||
// CommitFee is the amount calculated to be paid in fees for the
|
||||
|
@ -502,7 +502,7 @@ type commitment struct {
|
||||
// evaluating all the add/remove/settle log entries before the listed
|
||||
// indexes.
|
||||
//
|
||||
// NOTE: This is the balance *before* subtracting any commitment fee.
|
||||
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||
ourBalance lnwire.MilliSatoshi
|
||||
theirBalance lnwire.MilliSatoshi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user