Skip to content

Make frequency of invariant checks configurable #4053

Closed

Description

Description

REF #3914 (comment)

Rather than running the invariant checks every block, The node-operator should specify the number of blocks which they wish to run invariants with.

Additionally, each time the invariance is run, the number of block to run all invariants should be logged.

Acceptance Criteria

AC1

Given I run gaiad --inv-check-freq=N
Given N is strictly greater than 0
When the Nth block is created
Then invariance checks run
Then invariance checks output is logged.

AC2

Given I run gaiad --inv-check-freq=N
Given N equals 0
When the new blocks are created
Then invariance checks don't run

AC3

Given I run gaiad --inv-check-freq=N
Given N strictly smaller than 0
When the gaiad start
Then the node fails to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions