-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Spliting snap.stop logic to e2 and e3 parts: snap.stop/snap.state.stop (corresponds to ProduceE2 and ProduceE3) #10622
Conversation
…ogic in freezing files in snapshot
Linked issue: #10318 |
eth/stagedsync/stage_snapshots.go
Outdated
|
||
var minBlockNumber uint64 | ||
|
||
if cfg.snapshotUploader != nil { | ||
minBlockNumber = cfg.snapshotUploader.minBlockNumber() | ||
} | ||
|
||
if s.CurrentSyncCycle.IsInitialCycle { | ||
if s.CurrentSyncCycle.IsFirstCycle { |
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.
this part is not related to current PR. let's move it to another one
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.
okay, changed back
eth/ethconfig/config.go
Outdated
@@ -136,7 +137,8 @@ func init() { | |||
type BlocksFreezing struct { | |||
Enabled bool | |||
KeepBlocks bool // produce new snapshots of blocks but don't remove blocks from DB | |||
Produce bool // produce new snapshots | |||
ProduceE2 bool // produce new snapshots |
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.
produce new snapshots
-> produce new blocks files
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.
done
split Produce flag to ProduceE2 and ProduceE3 flag. Also replaced a logic in freezing files in snapshot. Added produce flag and it's setter to an aggregator. Closes #10318