Add an OP_RETURN "BCMR" prefix filter to the rostrum mempool.get pass and index matching txs in update_mempool with the all-zeros sentinel blockhash (same pattern as oracle). A newly registered BCMR becomes the auth head and is downloaded immediately; the confirming block re-stamps the entry with its real blockhash in place. - insert_authheader: INSERT OR REPLACE -> upsert. REPLACE deletes the row, cascading away downloaded bcmr_data on every mempool->confirmed upgrade. - update_mempool drops sentinel entries whose tx left the mempool (evicted or replaced), so stale auth heads never linger. - clear bcmr mempool state at startup; always-run migration adds txid and blockhash indexes on auth_chain_entry for the per-pass lookups. Auth chain transfers without a BCMR output still index at confirmation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| mod.rs | ||