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:
Johan T. Halseth 2020-01-06 11:42:02 +01:00
parent 22e1f006b1
commit 2c46640dd0
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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