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

Suggest replacing get_block() #581

Closed
UMU618 opened this issue Aug 14, 2019 · 1 comment
Closed

Suggest replacing get_block() #581

UMU618 opened this issue Aug 14, 2019 · 1 comment
Labels
dependency External dependency (need change in eos back-end) enhancement

Comments

@UMU618
Copy link
Contributor

UMU618 commented Aug 14, 2019

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);

@UMU618 UMU618 changed the title Suggest replaceing get_block Suggest replacing get_block() Aug 14, 2019
@tbfleming tbfleming added dependency External dependency (need change in eos back-end) enhancement labels Aug 14, 2019
@c0d3ster
Copy link
Contributor

Made some adjustments to the interfaces and the transactionHeader logic in the serializer, then merged it in.
Thanks for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency External dependency (need change in eos back-end) enhancement
Projects
None yet
Development

No branches or pull requests

3 participants