Create network test for persistent state #688
Labels
C-collator
Collator module
C-core
Core module
C-internal-queue
Internal queue submodule in Collator
P-high
High priority
S-feature
Severity: feature. This is adding a new feature.
Milestone
We need to test that persistent state created correctly and then can be used for sync.
Scenario:
A new configuration parameter or environment variable is needed to adjust the interval of persistent block creation for testing purposes here
To trigger persistent creation, it’s necessary to produce key blocks. This can be done by making a minor, non-impactful change to the blockchain config via the control server.
We want to test the following scenario:
To ensure this, the internal queue must be large enough so that, when the node attempts to collate, the queue tail is still below the persistent point.
If the node continues syncing before starting to collate,
processed_to
might surpass the persistent block, making the test irrelevant.A mismatch in the produced block can be detected via the metric
tycho_collator_block_mismatch_count
The text was updated successfully, but these errors were encountered: