aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-chainstate.cpp
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2022-09-01 15:35:23 -0400
committerRyan Ofsky <ryan@ofsky.org>2023-05-24 08:55:47 -0400
commit8aa8f73adce72e1ae855b43413c1f65504423cb7 (patch)
tree4a62bc784ac4d924708fdaee81354707e8247786 /src/bitcoin-chainstate.cpp
parent5f49cb1bc8e6ba0671c21bf6292d2d3de43fd001 (diff)
downloadbitcoin-8aa8f73adce72e1ae855b43413c1f65504423cb7.tar.xz
refactor: Replace std::optional<bilingual_str> with util::Result
Diffstat (limited to 'src/bitcoin-chainstate.cpp')
-rw-r--r--src/bitcoin-chainstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp
index 16c3bfb708..c143385d13 100644
--- a/src/bitcoin-chainstate.cpp
+++ b/src/bitcoin-chainstate.cpp
@@ -60,7 +60,7 @@ int main(int argc, char* argv[])
// We can't use a goto here, but we can use an assert since none of the
// things instantiated so far requires running the epilogue to be torn down
// properly
- assert(!kernel::SanityChecks(kernel_context).has_value());
+ assert(kernel::SanityChecks(kernel_context));
// Necessary for CheckInputScripts (eventually called by ProcessNewBlock),
// which will try the script cache first and fall back to actually