Skip to content
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

Closed
drahnr opened this issue Nov 12, 2021 · 1 comment
Assignees
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.

Comments

@drahnr
Copy link
Contributor

drahnr commented Nov 12, 2021

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:

  • Provide a impl FusedStream interface to consume the updates.
  • Provide a async send(key: &'static str, val: impl scale_codec::Encode) to send the value to the runner
  • Assure no context is required, but only standalone fns, the context should be global/static.

Required for #4271

@drahnr drahnr added J0-enhancement An additional feature request. I5-tests Tests need fixing, improving or augmenting. labels Nov 12, 2021
@drahnr
Copy link
Contributor Author

drahnr commented Apr 13, 2022

Already implemented #4377

@drahnr drahnr closed this as completed Apr 13, 2022
@ordian ordian added the T4-parachains_engineering This PR/Issue is related to Parachains performance, stability, maintenance. label Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

3 participants