go-ethereum/core/txpool/legacypool
Quentin McGaw fcf5204a02
core/txpool/legacypool: fix flaky test TestAllowedTxSize (#30975)
- it was failing because the maximum data length (previously `dataSize`)
was set to `txMaxSize - 213` but should had been `txMaxSize - 103` and
the last call `dataSize+1+uint64(rand.Intn(10*txMaxSize)))` would
sometimes fail depending on rand.Intn.
- Maximal transaction data size comment (invalid) replaced by code logic
to find the maximum tx length without its data length
- comments and variable naming improved for clarity
- 3rd pool add test replaced to add just 1 above the maximum length,
which is important to ensure the logic is correct
2025-01-13 19:33:49 +01:00
..
journal.go core/txpool: no need to log loud rotate if no local txs (#29083) 2024-02-26 18:34:45 +02:00
legacypool.go build: upgrade golangci-lint to v1.63.4 (#31019) 2025-01-13 08:26:10 +01:00
legacypool2_test.go core/state: state reader abstraction (#29761) 2024-09-05 13:10:47 +03:00
legacypool_test.go core/txpool/legacypool: fix flaky test TestAllowedTxSize (#30975) 2025-01-13 19:33:49 +01:00
list.go all: remove dependency on golang.org/exp (#29314) 2024-03-25 07:50:18 +01:00
list_test.go core/txpool/legacypool: remove a redundant heap.Init (#28910) 2024-02-15 19:50:17 +01:00
noncer.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00