Skip to content

Commit

Permalink
fix pending stat (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook authored Apr 24, 2024
1 parent 78027b6 commit 7c75c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/pendingstat_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (p *Pool) countBalanceIssueTransactions(ctx context.Context, addresses []co
mLog.Warnf("error getting balance for address %v, l2block %v, err %v", addr, err, lastL2Block.Root())
continue
}
if balance.Uint64() < txs[0].Value().Uint64() {
if balance.Cmp(txs[0].Cost()) < 0 {
count, err := p.storage.CountTransactionsByFromAndStatus(ctx, addr, TxStatusPending)
if err != nil {
mLog.Warnf("error getting transactions count by from %v, err %v", addr, err)
Expand Down

0 comments on commit 7c75c0a

Please sign in to comment.