Module cometbft_testgen::light_block
source · Structs§
- We use this data structure as a simplistic representation of LightClient’s LightBlock
- A light block is the core data structure used by the light client. It records everything the light client needs to know about a block. NOTE: This struct & associated
impl
below are a copy of light-client’sLightBlock
. The copy is necessary here to avoid a circular dependency. Cf. https://github.com/informalsystems/tendermint-rs/issues/605 TODO: fix redundant code without introducing cyclic dependency.
Functions§
- A helper function to generate SignedHeader used by TmLightBlock