You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pow.h 833B

1234567891011121314151617181920212223
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2016 The Starwels developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. #ifndef STARWELS_POW_H
  6. #define STARWELS_POW_H
  7. #include "consensus/params.h"
  8. #include <stdint.h>
  9. class CBlockHeader;
  10. class CBlockIndex;
  11. class uint256;
  12. unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
  13. unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
  14. /** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
  15. bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&);
  16. #endif // STARWELS_POW_H