Page MenuHomePhabricator

Token synchronization
Open, HighPublic

Revisions and Commits

Event Timeline

iongchun created this task.Nov 8 2017, 10:12 PM

For Infura, topic filter API is not available, so only eth_getlogs can be used for polling

iongchun added a comment.EditedNov 9 2017, 9:05 AM

For local node, use eth_newfilter and eth_getFilterChanged.
web3j implements filter polling in this way (ethLogObservable)

iongchun moved this task from Working to Backlog on the Ethereum Web Wallet board.Dec 28 2017, 1:50 PM
iongchun moved this task from Backlog to Working on the Ethereum Web Wallet board.Jul 3 2018, 8:25 PM

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:

  1. Use eth_getBlockByNumber to sync ether txs
  2. Use eth_getLogs to sync token txs
iongchun moved this task from Working to Ready on the Ethereum Web Wallet board.Jul 15 2018, 4:45 PM