aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/sqlite.h
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2022-11-29 22:34:26 -0500
committerAndrew Chow <github@achow101.com>2022-12-16 12:35:54 -0500
commit4aebd832a405090c2608e4b60bb4f34501bcea61 (patch)
tree81685d6a591416a0560d0e94d4003a5f2fec8593 /src/wallet/sqlite.h
parentd79e8dcf2981ef1964a2fde8c472b5de1ca1c963 (diff)
downloadbitcoin-4aebd832a405090c2608e4b60bb4f34501bcea61.tar.xz
db: Change DatabaseCursor::Next to return status enum
Next()'s result is a tri-state - failed, more to go, complete. Replace the way that this is returned with an enum with values FAIL, MORE, and DONE rather than with two booleans.
Diffstat (limited to 'src/wallet/sqlite.h')
-rw-r--r--src/wallet/sqlite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/sqlite.h b/src/wallet/sqlite.h
index 286ee1613d..23111cda16 100644
--- a/src/wallet/sqlite.h
+++ b/src/wallet/sqlite.h
@@ -22,7 +22,7 @@ public:
explicit SQLiteCursor() {}
~SQLiteCursor() override;
- bool Next(CDataStream& key, CDataStream& value, bool& complete) override;
+ Status Next(CDataStream& key, CDataStream& value) override;
};
/** RAII class that provides access to a WalletDatabase */