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 23:20:32 -0500 |
commit | 5d901f1ba0b2f4444e484b9cb3db8d86c428af3f (patch) | |
tree | 4e4a49112ebe6ba6f2cfcc8442de1e410a13732a /src/main.h | |
parent | 0e6425da4a29d6944e7edce85535725e1f963e2c (diff) | |
download | bitcoin-5d901f1ba0b2f4444e484b9cb3db8d86c428af3f.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 f5e7f6c3e3..876a35d9cc 100644 --- a/src/main.h +++ b/src/main.h @@ -98,6 +98,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); bool IsInitialBlockDownload(); std::string GetWarnings(std::string strFor); |