aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-18 22:19:26 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-08 19:16:33 +0300
commit314b49bd50906c03911d2b17a21a34685a60b3c8 (patch)
treea51a295d3d7b84b2f9a5a9c9597ba4a2da06a76c /src/node
parentabdfd2d0e3ebec7dbead89317ee9192189a35809 (diff)
downloadbitcoin-314b49bd50906c03911d2b17a21a34685a60b3c8.tar.xz
gui: Fix regression in GUI console
This change prevents "Shutting down" message during "dumptxoutset", "gettxoutsetinfo" and "scantxoutset" calls.
Diffstat (limited to 'src/node')
-rw-r--r--src/node/context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node/context.h b/src/node/context.h
index c783c39cd6..be568cba36 100644
--- a/src/node/context.h
+++ b/src/node/context.h
@@ -6,6 +6,7 @@
#define BITCOIN_NODE_CONTEXT_H
#include <cassert>
+#include <functional>
#include <memory>
#include <vector>
@@ -41,6 +42,7 @@ struct NodeContext {
std::unique_ptr<interfaces::Chain> chain;
std::vector<std::unique_ptr<interfaces::ChainClient>> chain_clients;
std::unique_ptr<CScheduler> scheduler;
+ std::function<void()> rpc_interruption_point = [] {};
//! Declare default constructor and destructor that are not inline, so code
//! instantiating the NodeContext struct doesn't need to #include class