Function hotshot_testing::helpers::build_system_handle

source ·
pub async fn build_system_handle<TYPES: NodeType<InstanceState = TestInstanceState>, I: NodeImplementation<TYPES, Storage = TestStorage<TYPES>, AuctionResultsProvider = TestAuctionResultsProvider<TYPES>> + TestableNodeImplementation<TYPES>, V: Versions>(
    node_id: u64,
) -> (SystemContextHandle<TYPES, I, V>, Sender<Arc<HotShotEvent<TYPES>>>, Receiver<Arc<HotShotEvent<TYPES>>>)
Expand description

create the SystemContextHandle from a node id

§Panics

if cannot create a HotShotInitializer