stellar-core
stellar-core copied to clipboard
Implement SQL invariants in BucketDB
We have certain invariants enforced in our ledger SQL logic like - https://github.com/stellar/stellar-core/blob/5a6d8502b6b6b12a40b133bcbae9e1abf1901041/src/ledger/LedgerTxnTrustLineSQL.cpp#L22
These invariants should be reflected in BucketDB as well.
The PR that closed this was reverted due to the fact that some ops allow prefetching an issuer trustline.
Closing, invariants in SQL were buggy