tendermint-rs icon indicating copy to clipboard operation
tendermint-rs copied to clipboard

testgen: Helpers to generate conflicting blocks

Open hu55a1n1 opened this issue 2 years ago • 0 comments

Description

Would be nice to have helper functions to generate conflicting light blocks. I am trying to test IBC misbehaviour handling and I need to generate two valid headers (i.e. headers that would pass light client verification) for the same height.

Definition of "done"

Maybe something like ->

impl LightBlock {
    pub fn next_equivocal(&self) -> (Self, Self) { /* ... */ }

    /* ... */
}

hu55a1n1 avatar Nov 24 '22 16:11 hu55a1n1