go-ethereum/core/txpool/locals
Kyrin d73bfeb3d9
core/txpool: Initialize journal writer for tx tracker (#32921)
Previously, the journal writer is nil until the first time rejournal
(default 1h), which means during this period, txs submitted to this node
are not written into journal file (transactions.rlp). If this node is
shutdown before the first time rejournal, then txs in pending or queue
will get lost.

Here, this PR initializes the journal writer soon after launch to solve
this issue.

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-10-21 15:41:38 +08:00
..
errors.go eth: add tx to locals only if it has a chance of acceptance (#31618) 2025-04-17 21:27:48 +02:00
journal.go core/txpool: Initialize journal writer for tx tracker (#32921) 2025-10-21 15:41:38 +08:00
tx_tracker.go core/txpool: Initialize journal writer for tx tracker (#32921) 2025-10-21 15:41:38 +08:00
tx_tracker_test.go core/txpool: Initialize journal writer for tx tracker (#32921) 2025-10-21 15:41:38 +08:00