Skip to content

Do not import an extra anchor before master block collation in latency test #1061

Description

@SmaGMan

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:

~/devnet5/latency.sh 

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions