Skip to content

Commit

Permalink
Ropsten: SnapSync as default (#4209)
Browse files Browse the repository at this point in the history
* enable SnapSync as default, remove stale EthStats

* fix tests

* one more place

* add test for SnapSync settings

* cleaning
  • Loading branch information
marcindsobczak committed Jun 24, 2022
1 parent d433fcf commit 6d44e1c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion src/Nethermind/Nethermind.Runner.Test/ConfigFilesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void Networking_is_disabled_when_needed(string configWildcard, bool isEna
Test<ISyncConfig, bool>(configWildcard, c => c.NetworkingEnabled, isEnabled);
}

[TestCase("ropsten", "ws://ropsten-stats.parity.io/api")]
[TestCase("ropsten", "ws://localhost:3000/api")]
[TestCase("rinkeby", "ws://localhost:3000/api")]
[TestCase("goerli", "wss://stats.goerli.net/api")]
[TestCase("mainnet", "wss://ethstats.net/api")]
Expand Down Expand Up @@ -285,6 +285,20 @@ public void Fast_sync_settings_as_expected(string configWildcard, bool downloadB
Test<ISyncConfig, bool>(configWildcard, c => c.DownloadHeadersInFastSync, downloadHeaders);
}

[TestCase("archive", false)]
[TestCase("mainnet.cfg", true)]
[TestCase("goerli.cfg", true)]
[TestCase("ropsten.cfg", true)]
[TestCase("rinkeby.cfg", false)]
[TestCase("sepolia.cfg", false)]
[TestCase("xdai.cfg", false)]
[TestCase("sokol.cfg", false)]
[TestCase("kiln.cfg", false)]
public void Snap_sync_settings_as_expected(string configWildcard, bool enabled)
{
Test<ISyncConfig, bool>(configWildcard, c => c.SnapSync, enabled);
}

[TestCase("^aura", false)]
[TestCase("aura ^archive", true)]
public void Stays_on_full_sync(string configWildcard, bool stickToFullSyncAfterFastSync)
Expand Down
3 changes: 2 additions & 1 deletion src/Nethermind/Nethermind.Runner/configs/ropsten.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
},
"Sync": {
"FastSync": true,
"SnapSync": true,
"FastBlocks": true,
"UseGethLimitsInFastBlocks": true,
"PivotNumber": 12440000,
"PivotHash": "0xefc456b4cd2edeb50c3b289a1a962298fb4d511bf08f0b9f1ffbbe55be34f182",
"PivotTotalDifficulty": "50000820485795157"
},
"EthStats": {
"Server": "ws://ropsten-stats.parity.io/api"
"Server": "ws://localhost:3000/api"
},
"Metrics": {
"NodeName": "Ropsten"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Size": 1024
},
"EthStats": {
"Server": "ws://ropsten-stats.parity.io/api"
"Server": "ws://localhost:3000/api"
},
"Metrics": {
"NodeName": "Ropsten Archive"
Expand Down

0 comments on commit 6d44e1c

Please sign in to comment.