riftenlabs-indexer/src/db
Hossein Zoda 62b8fb6436 ido: only update block_height when tx is already in the txchain
on_add_ido_tx rebuilt the whole chain whenever the input tx was not the
txchain head. A mempool tx confirming after the chain advanced past it
would needlessly trigger a full rebuild.

Reconstruct the current chain (txchain_head .. txchain_entrypoint) and,
if the tx is already part of it, only update its block height. Extract
the shared chain-walking logic into reconstruct_txchain, reused by both
the membership check and the rebuild branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 01:44:39 +03:00
..
bcmr Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
cauldron tokentoken: add GET /tokentoken/pools (list all active pools) 2026-06-17 13:48:45 +02:00
crc20 Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
ido ido: only update block_height when tx is already in the txchain 2026-06-21 01:44:39 +03:00
moria Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
oracle Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
search Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
blob.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
init.rs ido more fixes 2026-06-21 01:44:39 +03:00
mod.rs ido, compiles, with claude generated unittests 2026-06-21 01:44:39 +03:00