wallet: introduce active db txn listeners

Useful to ensure that the in-memory state is updated only
after successfully committing the data to disk.
This commit is contained in:
furszy
2024-03-26 10:48:30 -03:00
parent 91e065ec17
commit 57249ff669
8 changed files with 44 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ public:
bool TxnBegin() override { return m_pass; }
bool TxnCommit() override { return m_pass; }
bool TxnAbort() override { return m_pass; }
bool HasActiveTxn() override { return false; }
};
/** A WalletDatabase whose contents and return values can be modified as needed for testing