mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge pull request #4183
f40dbeeremove CPubKey::VerifyCompact( ) which is never used (Kamil Domanski)28b6c1dremove GetMedianTime( ) which is never used (Kamil Domanski)5bd4adcremove LookupHostNumeric( ) which is never used (Kamil Domanski)595f691remove LogException( ) which is never used (Kamil Domanski)f4057cbremove CTransaction::IsNewerThan which is never used (Kamil Domanski)0e31e56remove CWallet::AddReserveKey which is never used (Kamil Domanski)
This commit is contained in:
13
src/main.cpp
13
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);
|
||||
|
||||
Reference in New Issue
Block a user