aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-08-13 14:21:12 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2022-08-29 08:10:35 -0400
commit376086fc5a187f5b2ab3a0d1202ed4e6c22bdb50 (patch)
tree8e0b8ce74bb86b3defc3909b826c8a9e54332f96 /src/interfaces/node.h
parent93eae27031a65b4156df49015ae45b2b541b4e5a (diff)
downloadbitcoin-376086fc5a187f5b2ab3a0d1202ed4e6c22bdb50.tar.xz
Make validation interface capable of signalling header presync
This makes a number of changes: - Get rid of the verification_progress argument in the node interface NotifyHeaderTip (it was always 0.0). - Instead of passing a CBlockIndex* in the UI interface's NotifyHeaderTip, send separate height, timestamp fields. This is becuase in headers presync, no actual CBlockIndex object is available. - Add a bool presync argument to both of the above, to identify signals pertaining to the first headers sync phase.
Diffstat (limited to 'src/interfaces/node.h')
-rw-r--r--src/interfaces/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/node.h b/src/interfaces/node.h
index 2c31e12ada..dbdb21eb91 100644
--- a/src/interfaces/node.h
+++ b/src/interfaces/node.h
@@ -260,7 +260,7 @@ public:
//! Register handler for header tip messages.
using NotifyHeaderTipFn =
- std::function<void(SynchronizationState, interfaces::BlockTip tip, double verification_progress)>;
+ std::function<void(SynchronizationState, interfaces::BlockTip tip, bool presync)>;
virtual std::unique_ptr<Handler> handleNotifyHeaderTip(NotifyHeaderTipFn fn) = 0;
//! Get and set internal node context. Useful for testing, but not