aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.cpp
diff options
context:
space:
mode:
authorfurszy <[email protected]>2020-01-23 21:34:58 -0300
committerfurszy <[email protected]>2020-05-23 20:02:10 -0300
commita06e845e826acaeb0db7cf02b2519c177e94dee5 (patch)
tree6eeaf01a99b90382adb98d79500f1d8ea40285f0 /src/interfaces/node.cpp
parentAdded best block hash to the NotifyHeaderTip and NotifyBlockTip signals. (diff)
downloaddiscoin-a06e845e826acaeb0db7cf02b2519c177e94dee5.tar.xz
discoin-a06e845e826acaeb0db7cf02b2519c177e94dee5.zip
BlockTip struct created and connected to notifyHeaderTip and notifyBlockTip signals.
Diffstat (limited to 'src/interfaces/node.cpp')
-rw-r--r--src/interfaces/node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp
index 582bf68ff..ca1435fe6 100644
--- a/src/interfaces/node.cpp
+++ b/src/interfaces/node.cpp
@@ -315,7 +315,7 @@ public:
std::unique_ptr<Handler> handleNotifyBlockTip(NotifyBlockTipFn fn) override
{
return MakeHandler(::uiInterface.NotifyBlockTip_connect([fn](SynchronizationState sync_state, const CBlockIndex* block) {
- fn(sync_state, block->GetBlockHash(), block->nHeight, block->GetBlockTime(),
+ fn(sync_state, BlockTip{block->nHeight, block->GetBlockTime(), block->GetBlockHash()},
GuessVerificationProgress(Params().TxData(), block));
}));
}
@@ -323,7 +323,7 @@ public:
{
return MakeHandler(
::uiInterface.NotifyHeaderTip_connect([fn](SynchronizationState sync_state, const CBlockIndex* block) {
- fn(sync_state, block->GetBlockHash(), block->nHeight, block->GetBlockTime(),
+ fn(sync_state, BlockTip{block->nHeight, block->GetBlockTime(), block->GetBlockHash()},
/* verification progress is unused when a header was received */ 0);
}));
}