vocdoni / census3

Golang library and a HTTP/API service that can be used to fetch an updated list of token holders for a Ethereum ERC20, ERC721, ERC777, or other external providers (ex. POAPs or GitcoinPassport).
GNU Affero General Public License v3.0
9 stars 2 forks source link

Rescan tokens to process missing transactions #202

Open lucasmenendez opened 5 months ago

lucasmenendez commented 5 months ago

Includes new endpoints to run a token rescan storing just the no processed logs. It includes the use of arbo merkle tree as key-value database to store the processed logs by token.

It also includes a scanner refactor splitting it in two background tasks, the scanner, which now just short the tokens to scan to include them into the updater, and the updater, which manage a queue of tokens to scan, associated to a start and end block. This refactor allows to rescan a token from the API, including it in the updater.

github-actions[bot] commented 5 months ago

Image description CodeRabbit


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.