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

RPC Checks | Add fallback to rpc[0] #659

Closed
SamusElderg opened this issue Dec 13, 2021 · 1 comment
Closed

RPC Checks | Add fallback to rpc[0] #659

SamusElderg opened this issue Dec 13, 2021 · 1 comment
Assignees
Labels

Comments

@SamusElderg
Copy link
Collaborator

src/store/web3/actions.js
getRPCBlocks()

Just before pushing the list of resolved RPCs, but BEFORE it gets sorted by 'block':

  • Count how many of the RPCs are 'good'
  • If the count is === 0
  • Then change rpcs[0].good = true or rpcs[0].block = 1
  • So we want to change the first RPC (should be the main binance one) to fallback to being used, check if we use 'good' anywhere other than the PU screen, if we dont, just make the block = 1, if we do use it then also change that to 'good= true'
@SamusElderg SamusElderg self-assigned this Dec 15, 2021
@SamusElderg
Copy link
Collaborator Author

Used block = 100 instead so that we don't potentially include negative block numbers when this is tested/checked during the random rpc selection function

Done: 5c86e27

SamusElderg added a commit that referenced this issue Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant