This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
[zombinet] introduce helper crate to support coordinated / relative block malus impls #4272
Labels
I5-tests
Tests need fixing, improving or augmenting.
J0-enhancement
An additional feature request.
T4-parachains_engineering
This PR/Issue is related to Parachains performance, stability, maintenance.
Problem:
For some test cases we require the possibility to coordinate between malicious actors. For this we need a "backchannel" to the test-runner needs to be implemented to provide key value based information as a bidirectional message stream that can be referenced.
Impl hints:
For compatibility and ease of use, values should be
scale
-encoded. Every value must have a key. Once a key is sent to the test-runner, it should also be sent to all other malicious entities, so it's a star network with the test-runner in the center.Impl details:
impl FusedStream
interface to consume the updates.async send(key: &'static str, val: impl scale_codec::Encode)
to send the value to the runnerfn
s, the context should be global/static.Required for #4271
The text was updated successfully, but these errors were encountered: