Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Ignore application errors in ProviderProxy #4997

Merged
merged 2 commits into from
Dec 18, 2019
Merged

Conversation

jiivan
Copy link
Contributor

@jiivan jiivan commented Dec 16, 2019

All ValueErrors generated in web3 seem to be application logic errors, not connection issues. Therefore it seems wise to just reraise them in ProviderProxy.

Typical ValueErrors are:

  1. missing trie node
  2. known transaction
  3. nonce too low
  4. No matching events found

Some of them are already handled by ŚCI.

@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

Merging #4997 into b0.22 will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##            b0.22    #4997      +/-   ##
==========================================
+ Coverage   90.05%   90.11%   +0.05%     
==========================================
  Files         233      233              
  Lines       21902    21902              
==========================================
+ Hits        19723    19736      +13     
+ Misses       2179     2166      -13

@jiivan jiivan changed the title QuickFix: Ignore known errors in ProviderProxy Ignore application errors in ProviderProxy Dec 16, 2019
@jiivan jiivan marked this pull request as ready for review December 18, 2019 11:33
@jiivan jiivan merged commit c1fbe0c into b0.22 Dec 18, 2019
@jiivan jiivan deleted the b0.22-known-geth-qfix branch December 18, 2019 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants