8000 Improve `IOutputsMerkleRootValidator` tests in `DaveConsensus` · Issue #137 · cartesi/dave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve IOutputsMerkleRootValidator tests in DaveConsensus #137
Open
@GCdePaula

Description

@GCdePaula
  • Add test cases where Merkle proof fails for each possible reason;
  • Test exactly the TX buffer leaf value, instead of using an address space with repeated states;
  • Create function that generates siblings from random seed---instead of fuzzing of the output tree (and repeating it to generate an address space), let the siblings be fuzzed;
  • Check that outputs Merkle root is invalid before settlement and valid after settlement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0