diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-09-08 12:51:43 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2011-12-01 15:48:27 -0500 |
commit | f8c3eb9568fcaff41afb257f6058d1f33ae14358 (patch) | |
tree | 6a8870b694e68d0d35310a1d18b6ae3ff86b6b10 /src/main.h | |
parent | d27be1f55777bd502beb6b89513f1a03ed988f1a (diff) | |
download | bitcoin-f8c3eb9568fcaff41afb257f6058d1f33ae14358.tar.xz |
Orphan block fill-up-memory attack prevention
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index f459d050ce..3870cee864 100644 --- a/src/main.h +++ b/src/main.h @@ -99,6 +99,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& void FormatHashBuffers(CBlock* pblock, char* pmidstate, char* pdata, char* phash1); bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey); bool CheckProofOfWork(uint256 hash, unsigned int nBits); +unsigned int ComputeMinWork(unsigned int nBase, int64 nTime); int GetNumBlocksOfPeers(); bool IsInitialBlockDownload(); std::string GetWarnings(std::string strFor); |