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> |
||
|---|---|---|
| .. | ||
| bcmr | ||
| cauldron | ||
| crc20 | ||
| ido | ||
| moria | ||
| oracle | ||
| search | ||
| blob.rs | ||
| init.rs | ||
| mod.rs | ||