MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckProofSignedParent

Function CheckProofSignedParent

src/block_proof.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool 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}

Callers 3

IsValidPeginWitnessFunction · 0.85
createrawpeginFunction · 0.85
ConstructTransactionFunction · 0.85

Calls 3

CheckProofGenericFunction · 0.85
CScriptWitnessClass · 0.70
IsNullMethod · 0.45

Tested by

no test coverage detected