zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
167 stars 109 forks source link

Add ability to disable ZetaClient functionality at run time #3186

Open lumtis opened 6 days ago

lumtis commented 6 days ago

Describe the Issue

The following PR introduces test for inbound trackers: https://github.com/zeta-chain/node/pull/3179

To effectively test trackers, the observation should be disable, the current solution is to disable in the code observation logic with an early return. This solution is not scalable and doesn't allow to test in the CI (at least properly)

We should be able to disable through config or so functionality such as inbound observation at runtime.

So the inbound tracker test can be integrated in the CI

This is one example but the solution could be generalized to all the different functionality:

Overall this would enable developer new class of E2E reliability test by simulating network downtime, etc...

Example: