@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Function selectStateTreeInfo

    • Select a pseudo-random active state tree info from the set of provided state tree infos.

      Using this reduces write-lock contention on state trees.

      Parameters

      • infos: TreeInfo[]

        Set of state tree infos

      • treeType: TreeType = ...

        Optional: Only use if you know what you are doing. The type of tree.

      • useMaxConcurrency: boolean = false

        Optional: Only use if you know what you are doing. If true, select from all infos.

      Returns TreeInfo

      A pseudo-randomly selected tree info