Skip to content

Fix GetBlockData#1079

Merged
quantumagi merged 1 commit intostratisproject:release/1.5.0.0from
quantumagi:fixgetblockdata
Oct 27, 2022
Merged

Fix GetBlockData#1079
quantumagi merged 1 commit intostratisproject:release/1.5.0.0from
quantumagi:fixgetblockdata

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Oct 27, 2022

GetBlockData may currently fail to retrieve blocks if the ChainedHeaderBlock is not present in the ChainedHeaderTree.

This PR fixes that by also looking in the ChainIndexer (for the header) and subsequently the BlockStore (for the block).

Copy link
Collaborator

@zeptin zeptin left a comment

Choose a reason for hiding this comment

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

Nice find

@quantumagi quantumagi merged commit 17d4520 into stratisproject:release/1.5.0.0 Oct 27, 2022
quantumagi added a commit to quantumagi/StratisFullNode-1 that referenced this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants