Skip to content

eth, cli: prevent snap sync mode migration - v0.3.x#494

Merged
manav2401 merged 2 commits into
developfrom
manav/POS-731-disable-snap-sync
Aug 17, 2022
Merged

eth, cli: prevent snap sync mode migration - v0.3.x#494
manav2401 merged 2 commits into
developfrom
manav/POS-731-disable-snap-sync

Conversation

@manav2401

Copy link
Copy Markdown
Member

We've seen a couple of scenarios where some of our internal nodes have migrated to snap sync mode. Until we make it working fully, this PR will prevent that from happening.

It adds a preventive layer in the cli (old and new both) so that it's not enabled through flag and also handles cases where is migrates to snap sync.

@manav2401 manav2401 requested a review from a team August 17, 2022 07:24
@temaniarpit27

Copy link
Copy Markdown
Contributor

@manav2401 create a new PR from v0.2.16 and raise it against that as well

@manav2401 manav2401 changed the title eth, cli: prevent snap sync mode migration eth, cli: prevent snap sync mode migration - v0.3.x Aug 17, 2022
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #494 (005a5d0) into develop (0be4ea3) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop     #494      +/-   ##
===========================================
- Coverage    56.94%   56.93%   -0.01%     
===========================================
  Files          609      609              
  Lines        69987    69978       -9     
===========================================
- Hits         39855    39844      -11     
- Misses       26733    26744      +11     
+ Partials      3399     3390       -9     
Impacted Files Coverage Δ
eth/handler.go 54.31% <0.00%> (+0.19%) ⬆️
eth/sync.go 58.69% <ø> (+5.23%) ⬆️
internal/cli/server/config.go 73.44% <0.00%> (-0.18%) ⬇️
rpc/server.go 72.50% <0.00%> (-5.00%) ⬇️
p2p/discover/v4_udp.go 72.75% <0.00%> (-4.35%) ⬇️
p2p/simulations/mocker.go 31.11% <0.00%> (-2.23%) ⬇️
rpc/client.go 83.72% <0.00%> (-1.17%) ⬇️
miner/worker.go 72.06% <0.00%> (-1.12%) ⬇️
les/downloader/queue.go 78.72% <0.00%> (-0.54%) ⬇️
eth/downloader/skeleton.go 76.45% <0.00%> (-0.51%) ⬇️
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@manav2401 manav2401 merged commit 9f1feac into develop Aug 17, 2022
@manav2401 manav2401 deleted the manav/POS-731-disable-snap-sync branch August 17, 2022 09:48
cffls pushed a commit to cffls/bor that referenced this pull request Aug 17, 2022
* handle snap sync mode switches

* fix linters
cffls pushed a commit that referenced this pull request Aug 23, 2022
* handle snap sync mode switches

* fix linters
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.

6 participants