| 11 | #include <script/generic.hpp> |
| 12 | |
| 13 | bool CheckChallenge(const CBlockHeader& block, const CBlockIndex& indexLast, const Consensus::Params& params) |
| 14 | { |
| 15 | if (g_signed_blocks) { |
| 16 | return block.proof.challenge == indexLast.get_proof().challenge; |
| 17 | } else { |
| 18 | return block.nBits == GetNextWorkRequired(&indexLast, &block, params); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | static bool CheckProofGeneric(const CBlockHeader& block, const uint32_t max_block_signature_size, const CScript& challenge, const CScript& scriptSig, const CScriptWitness& witness) |
| 23 | { |
no test coverage detected