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

    Returns Promise<number>

    Current chain height