]> Git Repo - VerusCoin.git/commit
Correct and extend EstimateNetHeightInner tests
authorJack Grigg <[email protected]>
Fri, 28 Jul 2017 10:35:46 +0000 (10:35 +0000)
committerJack Grigg <[email protected]>
Fri, 28 Jul 2017 10:45:44 +0000 (10:45 +0000)
commit4a651837be5840e3f023a03a9a91c6537009153b
tree55a4c14dc725e31a99a244e13892d08c1c82086f
parent047aec1e0eafd0e5f9a80d841afd309730d8d4f8
Correct and extend EstimateNetHeightInner tests

Corrections are to the median block times, which were generated by subtracting
CBlockIndex::nMedianTimeSpan / 2 from the block height and then multiplying by
the target spacing. GetMedianTimePast() takes an array sorted by std::sort() and
returns element CBlockIndex::nMedianTimeSpan / 2, meaning that if
CBlockIndex::nMedianTimeSpan is odd (which it is), there is an out-by-one error
in the subtraction.
src/gtest/test_metrics.cpp
This page took 0.023139 seconds and 4 git commands to generate.