Problem
During the latency test (that frequently sends externals to multiple accounts and checks for the account's state update), an issue was observed: the collator does not always emit a master block immediately after the shard block when there are no pending messages.
It appears that before collating the master block, the collator attempts to import one more anchor. This adds an extra delay of one anchor interval, increasing overall latency and average latency as well.
Context
Latency test script:
Required
- check if the problem really exists in the collator (maybe we just need to change test params)
- fix the logic that manages when to collate a master block and when to import the next anchor before this collation
Problem
During the latency test (that frequently sends externals to multiple accounts and checks for the account's state update), an issue was observed: the collator does not always emit a master block immediately after the shard block when there are no pending messages.
It appears that before collating the master block, the collator attempts to import one more anchor. This adds an extra delay of one anchor interval, increasing overall latency and average latency as well.
Context
Latency test script:
Required