Developer Documentation
Ledger Integrity
Ledger Integrity
Run:
php api/cli/ledger-integrity-check.phpChecks:
- successful financial transactions have ledger entries
- debit and credit ledger entries balance
- wallet stored balances match ledger recalculation
- non-system wallets are not negative
- reversals link to original transactions
- duplicate settlement references are not present
Critical findings must be resolved before pilot transactions. Warnings must be reviewed by finance/engineering.