aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-chainstate.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-05-25 18:02:54 -0400
committerCarl Dong <contact@carldong.me>2022-06-02 12:22:46 -0400
commitd87784ac87364fc977bbf9769c8bdb72dea8cbf9 (patch)
tree11ea6e0e53dbd79ec701ea2a12f916becb29cb31 /src/bitcoin-chainstate.cpp
parent265d6393bf9ef52e7ef7de97ca9c031da82a5ad1 (diff)
downloadbitcoin-d87784ac87364fc977bbf9769c8bdb72dea8cbf9.tar.xz
kernel: SanityChecks: Return an error struct
This reduces libbitcoinkernel's coupling with ui_interface and translation.
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 3f2b298c1f..1817aa1a53 100644
--- a/src/bitcoin-chainstate.cpp
+++ b/src/bitcoin-chainstate.cpp
@@ -56,7 +56,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));
+ assert(!kernel::SanityChecks(kernel_context).has_value());
// Necessary for CheckInputScripts (eventually called by ProcessNewBlock),
// which will try the script cache first and fall back to actually