Macro polkadot_node_network_protocol::view
source · macro_rules! view { ( $( $hash:expr ),* $(,)? ) => { ... }; }
Expand description
Construct a new view with the given chain heads and finalized number 0.
NOTE: Use for tests only.
Example
let view = view![Hash::repeat_byte(1), Hash::repeat_byte(2)];