mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-25 01:09:28 +00:00
storageSizeDiff was a uint32. When replacing a transaction with a smaller one, the subtraction (new - old) would underflow, and the subsequent cast to uint64 would produce a huge value, making the datacap check always trigger incorrectly. Use int64 for the diff instead. When negative (pool shrinking), skip the capacity check entirely. When positive, the cast to uint64 is safe since we've confirmed it's positive. |
||
|---|---|---|
| .. | ||
| blobpool | ||
| legacypool | ||
| locals | ||
| errors.go | ||
| reserver.go | ||
| subpool.go | ||
| txpool.go | ||
| validation.go | ||
| validation_test.go | ||