aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_tests.cpp
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/test/wallet_tests.cpp
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/test/wallet_tests.cpp')
-rw-r--r--src/wallet/test/wallet_tests.cpp2
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. */