Make it easier to test trustedNodeSync or different networks

This commit is contained in:
Zahary Karadjov 2022-08-18 19:20:50 +03:00
parent 2f62567624
commit 7f681af56f
No known key found for this signature in database
GPG Key ID: C1F42EAFF38D570F
2 changed files with 6 additions and 4 deletions

View File

@ -417,10 +417,12 @@ proc doTrustedNodeSync*(
checkpointRoot
when isMainModule:
import std/[os]
import
std/[os],
networking/network_metadata
let backfill = os.paramCount() > 3 and os.paramStr(4) == "true"
let backfill = os.paramCount() > 4 and os.paramStr(5) == "true"
waitFor doTrustedNodeSync(
defaultRuntimeConfig, os.paramStr(1), os.paramStr(2), os.paramStr(3),
getRuntimeConfig(some os.paramStr(1)), os.paramStr(2), os.paramStr(3), os.paramStr(4),
backfill)

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 92b14b43eb817122d3e95672a46d0315b37d2ef0
Subproject commit 3e7da146671a6b56939c379d4ac780963bdd1c85