| 166 | return ::chainActive.Height(); |
| 167 | } |
| 168 | int64_t getLastBlockTime() override |
| 169 | { |
| 170 | LOCK(::cs_main); |
| 171 | if (::chainActive.Tip()) { |
| 172 | return ::chainActive.Tip()->GetBlockTime(); |
| 173 | } |
| 174 | return Params().GenesisBlock().GetBlockTime(); // Genesis block's time of current network |
| 175 | } |
| 176 | double getVerificationProgress() override |
| 177 | { |
| 178 | const CBlockIndex* tip; |
no test coverage detected