Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spent Addresses should be persisted in a seperate db instance #1263
Persists spent addresses to a separate db instance
Type of change
Please test this.
Spent address objects are continuing to persist correctly in the new db. Once the transactions are pruned, the address is injected into the spentAddresses db (Checked by searching the new db for addresses that were spent from following the pruning process). Attempts to double spend are rejected as expected, and the rejected transaction addresses are not persisted (no false positives found). While transactions are still present in the original db, validation catches attempts to spend from addresses that have already been spent from, and any chains of transactions that would lead to inconsistent ledger states are rejected, ensuring db integrity.