aboutsummaryrefslogtreecommitdiff
path: root/src/pow.h
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-06-20 20:55:42 +0200
committerjtimon <jtimon@monetize.io>2014-08-23 13:21:51 +0200
commit654871d43677947d124673c9e0dd2984f0d3ca61 (patch)
tree7a8cdc2a1ef9f46ddecea998a07936f3a1481926 /src/pow.h
parentb343c1a1e34f851e70649ad1f49855a7d878f9ef (diff)
downloadbitcoin-654871d43677947d124673c9e0dd2984f0d3ca61.tar.xz
replace ComputeMinWork with CheckMinWork
Diffstat (limited to 'src/pow.h')
-rw-r--r--src/pow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pow.h b/src/pow.h
index 6aea713fc4..f350d763f4 100644
--- a/src/pow.h
+++ b/src/pow.h
@@ -17,8 +17,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
/** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
bool CheckProofOfWork(uint256 hash, unsigned int nBits);
-/** Calculate the minimum amount of work a received block needs, without knowing its direct parent */
-unsigned int ComputeMinWork(unsigned int nBase, int64_t nTime);
+/** Check the work is more than the minimum a received block needs, without knowing its direct parent */
+bool CheckMinWork(unsigned int nBits, unsigned int nBase, int64_t deltaTime);
void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev);