Macro polkadot_node_network_protocol::our_view

source ·
macro_rules! our_view {
    ( $( $hash:expr ),* $(,)? ) => { ... };
}
Expand description

Construct a new OurView with the given chain heads, finalized number 0 and disabled jaeger::Span’s.

NOTE: Use for tests only.

§Example

let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];