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:
2 files changed
+5
-1
No files matched your search
@@ -320,10 +320,14 @@ type ChannelCommitment struct {
|
|||||||
|
|
||||||
// LocalBalance is the current available settled balance within the
|
// LocalBalance is the current available settled balance within the
|
||||||
// channel directly spendable by us.
|
// channel directly spendable by us.
|
||||||
|
//
|
||||||
|
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||||
LocalBalance lnwire.MilliSatoshi
|
LocalBalance lnwire.MilliSatoshi
|
||||||
|
|
||||||
// RemoteBalance is the current available settled balance within the
|
// RemoteBalance is the current available settled balance within the
|
||||||
// channel directly spendable by the remote node.
|
// channel directly spendable by the remote node.
|
||||||
|
//
|
||||||
|
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||||
RemoteBalance lnwire.MilliSatoshi
|
RemoteBalance lnwire.MilliSatoshi
|
||||||
|
|
||||||
// CommitFee is the amount calculated to be paid in fees for the
|
// CommitFee is the amount calculated to be paid in fees for the
|
||||||
|
|||||||
+1
-1
@@ -502,7 +502,7 @@ type commitment struct {
|
|||||||
// evaluating all the add/remove/settle log entries before the listed
|
// evaluating all the add/remove/settle log entries before the listed
|
||||||
// indexes.
|
// indexes.
|
||||||
//
|
//
|
||||||
// NOTE: This is the balance *before* subtracting any commitment fee.
|
// NOTE: This is the balance *after* subtracting any commitment fee.
|
||||||
ourBalance lnwire.MilliSatoshi
|
ourBalance lnwire.MilliSatoshi
|
||||||
theirBalance lnwire.MilliSatoshi
|
theirBalance lnwire.MilliSatoshi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user