qdrvm / kagome

Kagome - C++20 implementation of Polkadot Host
https://kagome.readthedocs.io
Apache License 2.0
155 stars 33 forks source link

Zombienet test ensuring that our reputation is not decreasing #2088

Open kamilsa opened 1 month ago

kamilsa commented 1 month ago

Write zombienet test with 1 KAGOME validator, 7 Polkadot validators, 2 parachain nodes (or more if needed). Async backing and elastic scaling should be enabled.

Test should ensure that our reputation is not decreasing more than reputation of any other validator running on Polkadot SDK. To achieve this we need:

  1. Prepare toml file with network configuration where Polkadot-SDK validators send logs with reputation changes
  2. Check logs from any Polkadot-SDK validator and compare number of reputation decreases of any other Polkadot-SDK validator
  3. Add condition to zndsl file ensuring that number of reputation decreases of each type of KAGOME validator is not larger than the number of reputation decreases of the same type of Polkadot-SDK validator
kamilsa commented 1 month ago

Archive 2.zip

One possible zombienet test reproducing reputation decrease issue. To run: zombienet-macos test -p native 0001-parachains-pvf.zndsl