-
Notifications
You must be signed in to change notification settings - Fork 325
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
[blockchain] set default config values for blob storage #4411
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,14 +24,16 @@ import ( | |
type ( | ||
// Config is the config struct for blockchain package | ||
Config struct { | ||
ChainDBPath string `yaml:"chainDBPath"` | ||
TrieDBPatchFile string `yaml:"trieDBPatchFile"` | ||
TrieDBPath string `yaml:"trieDBPath"` | ||
StakingPatchDir string `yaml:"stakingPatchDir"` | ||
IndexDBPath string `yaml:"indexDBPath"` | ||
BloomfilterIndexDBPath string `yaml:"bloomfilterIndexDBPath"` | ||
CandidateIndexDBPath string `yaml:"candidateIndexDBPath"` | ||
StakingIndexDBPath string `yaml:"stakingIndexDBPath"` | ||
ChainDBPath string `yaml:"chainDBPath"` | ||
TrieDBPatchFile string `yaml:"trieDBPatchFile"` | ||
TrieDBPath string `yaml:"trieDBPath"` | ||
StakingPatchDir string `yaml:"stakingPatchDir"` | ||
IndexDBPath string `yaml:"indexDBPath"` | ||
BloomfilterIndexDBPath string `yaml:"bloomfilterIndexDBPath"` | ||
CandidateIndexDBPath string `yaml:"candidateIndexDBPath"` | ||
StakingIndexDBPath string `yaml:"stakingIndexDBPath"` | ||
// deprecated | ||
SGDIndexDBPath string `yaml:"sgdIndexDBPath"` | ||
ContractStakingIndexDBPath string `yaml:"contractStakingIndexDBPath"` | ||
BlobStoreDBPath string `yaml:"blobStoreDBPath"` | ||
BlobStoreRetentionDays uint32 `yaml:"blobStoreRetentionDays"` | ||
|
@@ -89,7 +91,11 @@ var ( | |
BloomfilterIndexDBPath: "/var/data/bloomfilter.index.db", | ||
CandidateIndexDBPath: "/var/data/candidate.index.db", | ||
StakingIndexDBPath: "/var/data/staking.index.db", | ||
SGDIndexDBPath: "/var/data/sgd.index.db", | ||
ContractStakingIndexDBPath: "/var/data/contractstaking.index.db", | ||
BlobStoreDBPath: "/var/data/blob.db", | ||
BlobStoreRetentionDays: 20, | ||
BlobPurgeInterval: time.Hour, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. enforce 20 days of blob storage There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After reviewing the implementation of blobstore, we may need to make the following two changes:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. recommend extra 1 day for enhancing robustness of blobsync, like bsc does |
||
ID: 1, | ||
EVMNetworkID: 4689, | ||
Address: "", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,6 +330,10 @@ type ( | |
SystemStakingContractAddress string `yaml:"systemStakingContractAddress"` | ||
// SystemStakingContractHeight is the height of system staking contract | ||
SystemStakingContractHeight uint64 `yaml:"systemStakingContractHeight"` | ||
// deprecated | ||
SystemSGDContractAddress string `yaml:"systemSGDContractAddress"` | ||
// deprecated | ||
SystemSGDContractHeight uint64 `yaml:"systemSGDContractHeight"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add back since default |
||
// SystemStakingContractV2Address is the address of system staking contract | ||
SystemStakingContractV2Address string `yaml:"systemStakingContractV2Address"` | ||
// SystemStakingContractV2Height is the height of system staking contract | ||
|
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.
add back since default
config.yaml
on bootstrap repo has this field