| 55 | } |
| 56 | |
| 57 | static uint256 ComputeModifiedMerkleRoot(const CMutableTransaction& cb, const CBlock& block) |
| 58 | { |
| 59 | std::vector<uint256> leaves; |
| 60 | leaves.resize(block.vtx.size()); |
| 61 | leaves[0] = cb.GetHash(); |
| 62 | for (size_t s = 1; s < block.vtx.size(); ++s) { |
| 63 | leaves[s] = block.vtx[s]->GetHash(); |
| 64 | } |
| 65 | return ComputeMerkleRoot(std::move(leaves)); |
| 66 | } |
| 67 | |
| 68 | std::optional<SignetTxs> SignetTxs::Create(const CBlock& block, const CScript& challenge) |
| 69 | { |
no test coverage detected