go-ethereum/core/txpool/blobpool
Kuwon Sebastian Na ebc3232b49
eth: do not add failed tx to localTxTracker (#31202)
In transaction-sending APIs such as `eth_sendRawTransaction`, a submitted transaction 
failing the configured txpool validation rules (i.e. fee too low) would cause an error to be
returned, even though the transaction was successfully added into the locals tracker.
Once added there, the transaction may even be included into the chain at a later time,
when fee market conditions change.

This change improves on this by performing the validation in the locals tracker, basically
skipping some of the validation rules for local transactions. We still try to add the tx to the
main pool immediately, but an error will only be returned for transactions which are 
fundamentally invalid.

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-03-01 13:58:57 +01:00
..
blobpool.go eth: do not add failed tx to localTxTracker (#31202) 2025-03-01 13:58:57 +01:00
blobpool_test.go build: replace `tenv` linter with `usetesting` (#31172) 2025-02-21 13:36:18 +01:00
config.go core/txpool/blobpool: reduce default database cap for rollout (#29090) 2024-02-26 14:27:56 +02:00
evictheap.go all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
evictheap_test.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
interface.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00
limbo.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
lookup.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
metrics.go core/txpool/blobpool: post-crash cleanup and addition/removal metrics (#28914) 2024-02-02 18:26:35 +02:00
priority.go core/txpool/blobpool: calculate log1.125 faster (#29300) 2024-03-20 14:51:05 +01:00
priority_test.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
slotter.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
slotter_test.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00