Skip to content

Commit

Permalink
chore: revise numTxs, txsBytes for ErrMempoolIsFull in reserve()
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsan-line committed Jan 5, 2021
1 parent e2145e4 commit 1b23f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mempool/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ func (mem *CListMempool) reserve(txSize int64) error {

if memSize+mem.reserved >= mem.config.Size || txSize+mem.reservedBytes+txsBytes > mem.config.MaxTxsBytes {
return ErrMempoolIsFull{
memSize, mem.config.Size,
txsBytes, mem.config.MaxTxsBytes,
memSize + mem.reserved, mem.config.Size,
txsBytes + mem.reservedBytes, mem.config.MaxTxsBytes,
}
}

Expand Down

0 comments on commit 1b23f66

Please sign in to comment.