diff options
author | Kamil Domanski <kdomanski@kdemail.net> | 2014-05-13 21:37:47 +0200 |
---|---|---|
committer | Kamil Domanski <kdomanski@kdemail.net> | 2014-05-20 14:58:21 +0200 |
commit | 28b6c1def57360ca5a05745faafaec53910f5e88 (patch) | |
tree | f2d778c8bdac7f22d4e1004c4f4dae504eea894c /src/main.cpp | |
parent | 5bd4adca716738a4de35aed2ccad874d3301fefc (diff) |
remove GetMedianTime( ) which is never used
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp index c54fa65233..126b4ada51 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2575,19 +2575,6 @@ bool CBlockIndex::IsSuperMajority(int minVersion, const CBlockIndex* pstart, uns return (nFound >= nRequired); } -int64_t CBlockIndex::GetMedianTime() const -{ - AssertLockHeld(cs_main); - const CBlockIndex* pindex = this; - for (int i = 0; i < nMedianTimeSpan/2; i++) - { - if (!chainActive.Next(pindex)) - return GetBlockTime(); - pindex = chainActive.Next(pindex); - } - return pindex->GetMedianTimePast(); -} - void PushGetBlocks(CNode* pnode, CBlockIndex* pindexBegin, uint256 hashEnd) { AssertLockHeld(cs_main); |