Remove direct bitcoin calls from qt/intro.cpp

This commit is contained in:
Russell Yanofsky 2017-04-17 15:44:10 -04:00 committed by John Newbery
parent fe6f27e6ea
commit d7c2c95948
4 changed files with 14 additions and 8 deletions

View file

@ -113,7 +113,7 @@ class NodeImpl : public Node
LOCK(::cs_main);
tip = ::chainActive.Tip();
}
return GuessVerificationProgress(::Params().TxData(), tip);
return GuessVerificationProgress(Params().TxData(), tip);
}
bool isInitialBlockDownload() override { return IsInitialBlockDownload(); }
bool getReindex() override { return ::fReindex; }
@ -166,7 +166,7 @@ class NodeImpl : public Node
{
return MakeHandler(::uiInterface.NotifyBlockTip.connect([fn](bool initial_download, const CBlockIndex* block) {
fn(initial_download, block->nHeight, block->GetBlockTime(),
GuessVerificationProgress(::Params().TxData(), block));
GuessVerificationProgress(Params().TxData(), block));
}));
}
std::unique_ptr<Handler> handleNotifyHeaderTip(NotifyHeaderTipFn fn) override
@ -174,7 +174,7 @@ class NodeImpl : public Node
return MakeHandler(
::uiInterface.NotifyHeaderTip.connect([fn](bool initial_download, const CBlockIndex* block) {
fn(initial_download, block->nHeight, block->GetBlockTime(),
GuessVerificationProgress(::Params().TxData(), block));
GuessVerificationProgress(Params().TxData(), block));
}));
}
};