Hao Xu
fe0b1513a7
test: add a test for txgraph staging
...
staging is a batching mechanism for txgraph, add a test for this
feature.
2026-02-07 13:06:52 +00:00
Hao Xu
ef253a9d3d
test: add block builder tests for txgraph
...
Add block builder tests to make sure chunks for a cluster are all right.
2026-02-07 13:06:26 +00:00
Hao Xu
4a1ac31e97
test: add a chunk test for txgraph
...
Add a test for GetWorstMainChunk(), which picks the worst chunk from
txgraph.
Co-developed-by: rkrux <rkrux.connect@gmail.com >
2026-02-07 13:06:19 +00:00
facd01e6ff
refactor: remove redundant locator cleanup in BaseIndex::Init()
...
Leverage locator.IsNull() to simplify ReadBestBlock() and remove
unnecessary SetNull().
Co-authored-by: furszy <matiasfurszyfer@protonmail.com >
Co-authored-by: l0rinc <pap.lorinc@gmail.com >
Signed-off-by: Hao Xu <hao.xu@linux.dev >
2025-09-18 00:17:24 +08:00
Hao Xu
acf50233cd
index: fix wrong assert of current_tip == m_best_block_index
...
In BaseIndex::Sync(), pindex in `Rewind(pindex, pindex_next->pprev)` isn't always
equal to m_best_block_index since m_best_block_index is updated every
SYNC_LOCATOR_WRITE_INTERVAL seconds, during which multiple pindex update could
happen. Thus the assert here is wrong.
Signed-off-by: Hao Xu <hao.xu@linux.dev >
2025-08-02 00:10:24 +08:00