Skip to content
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

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

JkLondon
Copy link
Member

@JkLondon JkLondon commented Jun 5, 2024

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

@JkLondon JkLondon self-assigned this Jun 5, 2024
@JkLondon
Copy link
Member Author

JkLondon commented Jun 5, 2024

Linked issue: #10318


var minBlockNumber uint64

if cfg.snapshotUploader != nil {
minBlockNumber = cfg.snapshotUploader.minBlockNumber()
}

if s.CurrentSyncCycle.IsInitialCycle {
if s.CurrentSyncCycle.IsFirstCycle {
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, changed back

eth/stagedsync/exec3.go Outdated Show resolved Hide resolved
@@ -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
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) June 12, 2024 04:20
@AskAlexSharov AskAlexSharov changed the title [wip] Spliting snap.stop logic to e2 and e3 parts: snap.stop/snap.state.stop (corresponds to ProduceE2 and ProduceE3) Spliting snap.stop logic to e2 and e3 parts: snap.stop/snap.state.stop (corresponds to ProduceE2 and ProduceE3) Jun 12, 2024
@AskAlexSharov AskAlexSharov self-requested a review June 13, 2024 06:10
@AskAlexSharov AskAlexSharov merged commit cff37c6 into main Jun 13, 2024
10 checks passed
@AskAlexSharov AskAlexSharov deleted the e35-snap-state-stop branch June 13, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--snap.stop analog for e3 files: --snap.state.stop
2 participants