aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2019-06-21 16:29:14 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-06-21 16:29:14 +0800
commit60c062e17df7cac4addbec1a216daedf83af876e (patch)
treee9a102a0363e708a863464adf0e4a6065ca7016e /p2p
parent25c3282cf1260bdc68c4ba9075c2bcc2f8136ea5 (diff)
downloadgo-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar.gz
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar.bz2
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar.lz
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar.xz
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.tar.zst
go-tangerine-60c062e17df7cac4addbec1a216daedf83af876e.zip
core: move TxPool reorg and events to background goroutine (#19705)
* 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
Diffstat (limited to 'p2p')
0 files changed, 0 insertions, 0 deletions