Skip to content

ETCM-845: Through rpc expose only blocks that are saved to storage#999

Merged
AnastasiiaL merged 1 commit intodevelopfrom
ETCM-845
May 31, 2021
Merged

ETCM-845: Through rpc expose only blocks that are saved to storage#999
AnastasiiaL merged 1 commit intodevelopfrom
ETCM-845

Conversation

@AnastasiiaL
Copy link
Copy Markdown
Contributor

@AnastasiiaL AnastasiiaL commented May 27, 2021

Description

Several endpoints make use of the "best known block", which fails in case the best block wasn't yet saved to storage and only available in memory.

#Solution

fallback to best saved block in case best known block is not (yet) available

Comment thread src/main/scala/io/iohk/ethereum/domain/Blockchain.scala Outdated
@AnastasiiaL AnastasiiaL changed the title ETCM-845: Through rpc expose only blocks that are saved to storage WIP: ETCM-845: Through rpc expose only blocks that are saved to storage May 31, 2021
Comment thread src/main/scala/io/iohk/ethereum/jsonrpc/EthProofService.scala Outdated
@AnastasiiaL AnastasiiaL changed the title WIP: ETCM-845: Through rpc expose only blocks that are saved to storage ETCM-845: Through rpc expose only blocks that are saved to storage May 31, 2021
@AnastasiiaL AnastasiiaL merged commit b22574a into develop May 31, 2021
@AnastasiiaL AnastasiiaL deleted the ETCM-845 branch May 31, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants