RSS3-Network / Global-Indexer

In the vast RSS3 Network, the Global Indexer navigates requests with precision, it is a beacon in the byte-filled sea.
MIT License
13 stars 0 forks source link

fix(enforcer): enforcer data race #283

Open brucexc opened 6 days ago

brucexc commented 6 days ago

This pr uses a caching mechanism to track the valid and invalid request scores of nodes across epochs, addressing the issues of data consistency across multiple instances and slow queries due to frequent updates to the database. The latest cache records will be updated to the database every 5 minutes.