diff options
| author | furszy <[email protected]> | 2020-01-23 21:34:58 -0300 |
|---|---|---|
| committer | furszy <[email protected]> | 2020-05-23 20:02:10 -0300 |
| commit | a06e845e826acaeb0db7cf02b2519c177e94dee5 (patch) | |
| tree | 6eeaf01a99b90382adb98d79500f1d8ea40285f0 /src/interfaces/node.cpp | |
| parent | Added best block hash to the NotifyHeaderTip and NotifyBlockTip signals. (diff) | |
| download | discoin-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.cpp | 4 |
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); })); } |