ethereumjs / ethereumjs-blockstream

Reliable stream of Ethereum blocks
MIT License
80 stars 19 forks source link

Make sure duplicate logs are handled. #7

Closed MicahZoltu closed 6 years ago

MicahZoltu commented 7 years ago

At the moment, we fetch logs for each added filter, but two filters may return the same log. When it does, we need to make sure to not announce/record the log twice. To achieve this, we should have log reconciler dedupe the logs (probably after it sorts them) before writing them out and announcing them to users.