Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trie: add try-catch for "Missing node in DB" in ReadStream #1515

Merged
merged 2 commits into from
Oct 6, 2021

Conversation

Aniket-Engg
Copy link
Contributor

@Aniket-Engg Aniket-Engg commented Oct 5, 2021

_findValueNodes calls walkTrie which in turn calls lookupNode, so Missing node in DB error should be caught.

I have put a try-catch similar to https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/trie/src/baseTrie.ts#L238

This is about fixing this: https://circleci.com/api/v1.1/project/github/ethereum/remix-project/32843/output/104/0?file=true&allocation-id=615c60796785da3d6aca99c6-0-build%2F1FF9D10F ( See remix-tests:test & remix-debug:test or search Missing node in DB)

cc: @yann300

@ryanio ryanio changed the title added try-catch trie: added try-catch for "Missing node in DB" Oct 5, 2021
@ryanio ryanio changed the title trie: added try-catch for "Missing node in DB" trie: add try-catch for "Missing node in DB" Oct 5, 2021
@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #1515 (accf029) into master (3fefc5f) will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

Flag Coverage Δ
block 86.34% <ø> (-0.14%) ⬇️
blockchain 82.78% <ø> (ø)
client 82.37% <ø> (-0.27%) ⬇️
common 94.08% <ø> (ø)
devp2p 82.66% <ø> (-0.11%) ⬇️
ethash 90.76% <ø> (ø)
tx 87.34% <ø> (-0.13%) ⬇️
vm 79.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@ryanio ryanio left a comment

Choose a reason for hiding this comment

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

lgtm!

@ryanio ryanio changed the title trie: add try-catch for "Missing node in DB" trie: add try-catch for "Missing node in DB" in ReadStream Oct 6, 2021
@ryanio ryanio merged commit 6ca7ffd into ethereumjs:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants