| 62 | } |
| 63 | |
| 64 | bool CheckProofSignedParent(const CBlockHeader& block, const Consensus::Params& params) |
| 65 | { |
| 66 | const DynaFedParams& dynafed_params = block.m_dynafed_params; |
| 67 | if (dynafed_params.IsNull()) { |
| 68 | return CheckProofGeneric(block, params.max_block_signature_size, params.parent_chain_signblockscript, block.proof.solution, CScriptWitness()); |
| 69 | } else { |
| 70 | // Dynamic federations means we cannot validate the signer set |
| 71 | // at least without tracking the parent chain more directly. |
| 72 | // Note that we do not even serialize dynamic federation block witness data |
| 73 | // currently for merkle proofs which is the only context in which |
| 74 | // this function is currently used. |
| 75 | return true; |
| 76 | } |
| 77 | } |
no test coverage detected