MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / getLastBlockDate

Method getLastBlockDate

src/qt/clientmodel.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78QDateTime ClientModel::getLastBlockDate() const
79{
80 LOCK(cs_main);
81
82 if (chainActive.Tip())
83 return QDateTime::fromTime_t(chainActive.Tip()->GetBlockTime());
84
85 return QDateTime::fromTime_t(Params().GenesisBlock().GetBlockTime()); // Genesis block's time of current network
86}
87
88double ClientModel::getVerificationProgress() const
89{

Callers 2

setClientModelMethod · 0.80
setClientModelMethod · 0.80

Calls 3

ParamsClass · 0.50
TipMethod · 0.45
GetBlockTimeMethod · 0.45

Tested by

no test coverage detected