Skip to content

get_blocks.bin does not return tx's prunable_hash when pruned #10120

@Boog900

Description

@Boog900

When calling get_blocks.bin with prune = true the blocks returned will have their tx blobs pruned but wont set the prunable_hash, leaving it as the default. This means you can't reconstruct the tx hash and verify the txs are actually the correct ones provided for the block.

res.blocks.back().txs.push_back({std::move(i->second), crypto::null_hash});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions