shardeum / shardus-core

Other
10 stars 2 forks source link

fix: convert the cache datastruct to be a map prevents proto pollute #250

Closed afostr closed 3 weeks ago

github-actions[bot] commented 3 weeks ago

PR Reviewer Guide ๐Ÿ”

โฑ๏ธ Estimated effort to review: 3 ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ตโšชโšช
๐Ÿงช No relevant tests
๐Ÿ”’ No security concerns identified
โšก Key issues to review

Refactoring
The PR changes data structures from plain objects to Map and Set for better safety and performance. Ensure that all methods previously using object keys now properly use Map and Set methods. Code Consistency
Ensure consistent use of Map and Set across the entire class to prevent type errors and maintain code quality.