Revisions and Commits
Revisions and Commits
R11 Ethereum Web Wallet | |||
R11:cc7447d31813 token sync: use eth_getlogs | |||
R11:8bdf05b2944a add tx sync for tokens |
Event Timeline
Comment Actions
For Infura, topic filter API is not available, so only eth_getlogs can be used for polling
Comment Actions
For local node, use eth_newfilter and eth_getFilterChanged.
web3j implements filter polling in this way (ethLogObservable)
Comment Actions
Will not use eth_newfilter and eth_getFilterChanged, because I want to keep sync states for ether and tokens the same.
So, for syncing of a block:
- Use eth_getBlockByNumber to sync ether txs
- Use eth_getLogs to sync token txs