diff --git a/beacon_chain/conf.nim b/beacon_chain/conf.nim index c1e4637c0..fe9c7c1c4 100644 --- a/beacon_chain/conf.nim +++ b/beacon_chain/conf.nim @@ -80,6 +80,12 @@ type # migrateAll = "Export and remove the whole validator slashing protection DB." # migrate = "Export and remove specified validators from Nimbus." + SlashProtCmd* = enum + `import` = "Import a EIP-3076 slashing protection interchange file" + `export` = "Export a EIP-3076 slashing protection interchange file" + # migrateAll = "Export and remove the whole validator slashing protection DB." + # migrate = "Export and remove specified validators from Nimbus." + BeaconNodeConf* = object logLevel* {. desc: "Sets the log level for process and topics (e.g. \"DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none\")" diff --git a/beacon_chain/validators/slashing_protection.nim b/beacon_chain/validators/slashing_protection.nim index d52d520f4..23ed8cca4 100644 --- a/beacon_chain/validators/slashing_protection.nim +++ b/beacon_chain/validators/slashing_protection.nim @@ -91,7 +91,6 @@ proc init*( if requiresMigration: var db_v1: SlashingProtectionDB_v1 - let rawdb = kvstore result.db_v2.getRawDBHandle().openKvStore().get() if not rawdb.checkOrPutGenesis_DbV1(genesis_validators_root): fatal "The slashing database refers to another chain/mainnet/testnet", diff --git a/vendor/nim-eth b/vendor/nim-eth index 1995afb87..8abe6b714 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit 1995afb87e14bfb2d3fc2f3474e4d30e10c927a7 +Subproject commit 8abe6b7144d87315cae5c2b7a74d792f3dc527aa