blockscout-rs icon indicating copy to clipboard operation
blockscout-rs copied to clipboard

stats: optimism `new_contracts` bug

Open bragov4ik opened this issue 10 months ago • 1 comments

Issue https://github.com/blockscout/blockscout-rs/issues/841 follows from inaccurate data in chart new_contracts.

Possible reasons and

Apparently, blockscout reindexes old transactions, which is not considered for chart updating.

Fix directions

Changing logic of the update should help. In particular, utilizing field updated_at in table transactions with the help of corresponding index. I.e. query txn's added after last sync and add the result to stats DB.

Note: need to consider updates that do not result in changing created_contract_address_hash field. How - not sure rn. Maybe just recalculate data for days where update was observed.

bragov4ik avatar Apr 24 '24 16:04 bragov4ik

related, but seems more general: https://github.com/blockscout/blockscout-rs/issues/514

bragov4ik avatar Apr 24 '24 16:04 bragov4ik