iotexproject / iotex-core

Official implementation of IoTeX blockchain protocol in Go.
https://iotex.io
Apache License 2.0
1.55k stars 322 forks source link

Storing only the latest N states #4257

Open CoderZhi opened 2 months ago

CoderZhi commented 2 months ago

This PR tries to store the latest n states such that an API node could provide history state retrieval. The main change is in factoryworkingset:

  1. Record modifications of a specific height in a namespace
  2. Trim those modifications when they are expired

Fixes #(issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Checklist:

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud