Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

refactor: getBlock without insight #344

Merged
merged 16 commits into from
Mar 9, 2021
Merged

refactor: getBlock without insight #344

merged 16 commits into from
Mar 9, 2021

Conversation

Alex-Werner
Copy link
Contributor

@Alex-Werner Alex-Werner commented Mar 1, 2021

Issue being fixed or feature implemented

This PR brings support for getBlock without insight

What was done?

  • feat: provide getBlock using core RPC instead of insight

How Has This Been Tested?

  • Using test suite and added tests

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov shumkov changed the base branch from v0.18-dev to v0.19-dev March 3, 2021 07:43
@shumkov shumkov added this to the v0.19 milestone Mar 3, 2021
@shumkov shumkov changed the title feat: add getBlock without insight refactor: getBlock without insight Mar 9, 2021
@Alex-Werner Alex-Werner requested a review from shumkov March 9, 2021 06:13
@Alex-Werner Alex-Werner marked this pull request as ready for review March 9, 2021 06:15
throw new NotFoundGrpcError('Block not found');
if (e.code === -8) {
// Block height out of range
throw new InvalidArgumentGrpcError(e.message);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message must be "Invalid block height"

Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shumkov shumkov merged commit 5376748 into v0.19-dev Mar 9, 2021
@shumkov shumkov deleted the feat/get-block branch March 9, 2021 11:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants