Function awaitHeight

  • Wait for the chain to reach a specific height

    Parameters

    • height: number

      Height to wait for

    • options: { interval?: number; onNode: Node } & {
          _expectedMineRate?: number;
          _microBlockCycle?: number;
          onNode: Node;
      }

      Options

      • Optionalinterval?: number

        Interval (in ms) at which to poll the chain

      • onNode: Node

        Node to use

      • Optional_expectedMineRate?: number
      • Optional_microBlockCycle?: number
      • onNode: Node

        Node to use

    Returns Promise<number>

    Current chain height