-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[actpool] Simplify action store #4515
Conversation
|
@@ -56,7 +55,6 @@ type ( | |||
} | |||
actionStoreConfig struct { | |||
Datadir string `yaml:"datadir"` // Data directory containing the currently executable blobs | |||
Datacap uint64 `yaml:"datacap"` // Soft-cap of database storage (hard cap is larger due to overhead) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for v2.1.0 release, we added this config into config.yaml
. AFAI recall, datacap
is not added in the yaml file, but please make sure, so that existing full-node can start normally with existing yaml file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it has not been written in the config
actpool/actpool.go
Outdated
@@ -121,8 +119,7 @@ type actPool struct { | |||
worker []*queueWorker | |||
subs []Subscriber | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove empty line
|
Description
The persistent capacity limit has been removed to align with the memory pool. This eliminates the need to implement complex eviction mechanisms
Furthermore, because the persistent data is consistent with the memory, there is no longer a need for real-time synchronization during runtime.
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: