Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

light.js RPC call priotization #23

Open
amaury1093 opened this issue Oct 18, 2018 · 0 comments
Open

light.js RPC call priotization #23

amaury1093 opened this issue Oct 18, 2018 · 0 comments

Comments

@amaury1093
Copy link
Collaborator

For simplicity, the balanceOf$.setFrequency() function has been removed, but it would be an idea to put it back.

The idea is:

  • right now, each RpcObservable has its frequency fixed (i.e. balanceOf$ calls eth_getBalance on each new block).
  • now let's imagine a dapp that makes a huge amount of rpc calls. It would be nice to prioritize these calls.
    • At least console.warn the dapp developer that there are too many rpc calls at the same time
    • Let the dapp developer choose the frequency of each RpcObservable (e.g. some eth_getBalance can be called on every 2 blocks)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant