RustChain Bug Caused Silent Double-Subtraction in Cross-Chain Bridge Accounting
A software bug in RustChain's bridge reconciliation module introduced a structural under-reporting flaw in the calculation of bridged_supply_committed, a key metric tracking assets locked across blockchain networks. The defect, identified in node/bridge_reconciliation.py, incorrectly subtracted voided transfers a second time, even though they had already been excluded during the initial aggregation query. This double-subtraction meant the reported committed supply was consistently lower than the actual on-chain balance, creating a silent discrepancy between RustChain's internal ledger and external destination ledgers. Left undetected, such drift can escalate into insolvency risks or consensus failures within the federation. A fix has been proposed in pull request Scottcjn/Rustchain#8517, restoring the correct mathematical invariants as defined in FEDERATION_BRIDGED_SUPPLY_SPEC.md.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in