Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Suggest replacing get_block() #581

@UMU618

Description

@UMU618

get_block() is slow and may overload the server when the refBlock is a big one.

We just need:

  • refBlock.timestamp
  • refBlock.block_num
  • refBlock.ref_block_prefix

const refBlock = await this.rpc.get_block(info.head_block_num - blocksBehind);

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencyExternal dependency (need change in eos back-end)enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions