diff options
author | Andrew Chow <github@achow101.com> | 2022-11-29 22:34:26 -0500 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2022-12-16 12:35:54 -0500 |
commit | 4aebd832a405090c2608e4b60bb4f34501bcea61 (patch) | |
tree | 81685d6a591416a0560d0e94d4003a5f2fec8593 /src/wallet/test/wallet_tests.cpp | |
parent | d79e8dcf2981ef1964a2fde8c472b5de1ca1c963 (diff) | |
download | bitcoin-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/test/wallet_tests.cpp')
-rw-r--r-- | src/wallet/test/wallet_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index ea4dd30dea..600702a5cb 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -870,7 +870,7 @@ BOOST_FIXTURE_TEST_CASE(ZapSelectTx, TestChain100Setup) class FailCursor : public DatabaseCursor { public: - bool Next(CDataStream& key, CDataStream& value, bool& complete) override { return false; } + Status Next(CDataStream& key, CDataStream& value) override { return Status::FAIL; } }; /** RAII class that provides access to a FailDatabase. Which fails if needed. */ |