forked from cerc-io/plugeth
60c062e17d
* core: move TxPool reorg and events to background goroutine This change moves internal queue re-shuffling work in TxPool to a background goroutine, TxPool.runReorg. Requests to execute runReorg are accumulated by the new scheduleReorgLoop. The new loop also accumulates transaction events. The motivation for this change is making sends to txFeed synchronous instead of sending them in one-off goroutines launched by 'add' and 'promoteExecutables'. If a downstream consumer of txFeed is blocked for a while, reorg requests and events will queue up. * core: remove homestead check in TxPool This change removes tracking of the homestead block number from TxPool. The homestead field was used to enforce minimum gas of 53000 for contract creations after the homestead fork, but not before it. Since nobody would want configure a non-homestead chain nowadays and contract creations usually take more than 53000 gas, the extra correctness is redundant and can be removed. * core: fixes for review comments * core: remove BenchmarkPoolInsert This is useless now because there is no separate code path for individual transactions anymore. * core: fix pending counter metric * core: fix pool tests * core: dedup txpool announced events, discard stales * core: reorg tx promotion/demotion to avoid weird pending gaps |
||
---|---|---|
.. | ||
asm | ||
bloombits | ||
rawdb | ||
state | ||
types | ||
vm | ||
.gitignore | ||
bench_test.go | ||
block_validator_test.go | ||
block_validator.go | ||
blockchain_insert.go | ||
blockchain_test.go | ||
blockchain.go | ||
blocks.go | ||
chain_indexer_test.go | ||
chain_indexer.go | ||
chain_makers_test.go | ||
chain_makers.go | ||
dao_test.go | ||
error.go | ||
events.go | ||
evm.go | ||
gaspool.go | ||
gen_genesis_account.go | ||
gen_genesis.go | ||
genesis_alloc.go | ||
genesis_test.go | ||
genesis.go | ||
headerchain.go | ||
helper_test.go | ||
mkalloc.go | ||
state_prefetcher.go | ||
state_processor.go | ||
state_transition.go | ||
tx_cacher.go | ||
tx_journal.go | ||
tx_list_test.go | ||
tx_list.go | ||
tx_pool_test.go | ||
tx_pool.go | ||
types.go |