Skip to content

Commit

Permalink
Added description to balance check
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Dec 4, 2023
1 parent 377050e commit c35f245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tbtc/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@ func (n *node) HandleMovingFundsProposal(sourceWalletPublicKeyHash [20]byte) {
}

if walletBalance <= 0 {
// The wallet's balance cannot be `0`. Since we are dealing with
// a signed integer we also check it's not negative just in case.
logger.Infof(
"ignoring moving funds proposal for wallet with PKH [0x%x]; "+
"wallet does not have a positive balance",
Expand Down

0 comments on commit c35f245

Please sign in to comment.