From 7f681af56facbdaad4b3f75120af6dd059a2a378 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 18 Aug 2022 19:20:50 +0300 Subject: [PATCH] Make it easier to test trustedNodeSync or different networks --- beacon_chain/trusted_node_sync.nim | 8 +++++--- vendor/nim-eth | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/beacon_chain/trusted_node_sync.nim b/beacon_chain/trusted_node_sync.nim index 9cc7dc428..e7c99a528 100644 --- a/beacon_chain/trusted_node_sync.nim +++ b/beacon_chain/trusted_node_sync.nim @@ -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) diff --git a/vendor/nim-eth b/vendor/nim-eth index 92b14b43e..3e7da1466 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit 92b14b43eb817122d3e95672a46d0315b37d2ef0 +Subproject commit 3e7da146671a6b56939c379d4ac780963bdd1c85