wallet: Add DatabaseBatch::ErasePrefix method
This new function is not used yet this commit, but next commit adds usages and test coverage for both BDB and sqlite.
This commit is contained in:
1 parent
cae0608ad4
commit
5938ad0bdb
6 files changed
+51
-9
No files matched your search
@@ -922,6 +922,7 @@ private:
|
||||
bool WriteKey(DataStream&& key, DataStream&& value, bool overwrite = true) override { return m_pass; }
|
||||
bool EraseKey(DataStream&& key) override { return m_pass; }
|
||||
bool HasKey(DataStream&& key) override { return m_pass; }
|
||||
bool ErasePrefix(Span<const std::byte> prefix) override { return m_pass; }
|
||||
|
||||
public:
|
||||
explicit FailBatch(bool pass) : m_pass(pass) {}
|
||||
|
||||
Reference in new issue
Block a user