Skip to content

Review OnceLock usage for initialization #571

Description

@dazthecorgi

OnceLock is used in the Rust node codebase to initialize components, but this causes dangerous indeterminism in the application, e.g. validation can be skipped if the validator's OnceLock is not initialized yet.

Note: a quick fix can be to replace OnceLock::get with OnceLock::wait.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions