Skip to content

Commit 464387b

Browse files
committed
block and attestation migrated
Signed-off-by: Aliaksei Misiukevich <[email protected]>
1 parent a7b3513 commit 464387b

File tree

94 files changed

+299
-6443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+299
-6443
lines changed

Cargo.lock

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ members = [
8080
"testing/validator_test_rig",
8181
"testing/web3signer_tests",
8282
"validator_client",
83+
"validator_client/slashing_protection",
8384
"validator_client/beacon_node_fallback",
8485
"validator_client/doppelganger_service",
8586
"validator_client/graffiti_file",
@@ -275,6 +276,7 @@ validator_http_metrics = { path = "validator_client/http_metrics" }
275276
validator_metrics = { path = "validator_client/validator_metrics" }
276277
validator_services = { path = "validator_client/validator_services" }
277278
validator_store = { path = "validator_client/validator_store" }
279+
slashing_protection = { path = "validator_client/slashing_protection" }
278280
validator_test_rig = { path = "testing/validator_test_rig" }
279281
warp = { version = "0.3.7", default-features = false, features = ["tls"] }
280282
warp_utils = { path = "common/warp_utils" }

account_manager/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ safe_arith = { workspace = true }
2525
sensitive_url = { workspace = true }
2626
serde_json = { workspace = true }
2727
slot_clock = { workspace = true }
28+
slashing_protection = { workspace = true }
2829
tokio = { workspace = true }
2930
types = { workspace = true }
3031
validator_dir = { workspace = true }

account_manager/src/validator/create.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use account_utils::{
66
};
77
use clap::{Arg, ArgAction, ArgMatches, Command};
88
use clap_utils::FLAG_HEADER;
9-
use directory::{parse_path_or_default_with_flag, DEFAULT_SECRET_DIR, DEFAULT_WALLET_DIR};
10-
use eip_3076::{SlashingDatabase, SLASHING_PROTECTION_FILENAME};
9+
use directory::{DEFAULT_SECRET_DIR, DEFAULT_WALLET_DIR, parse_path_or_default_with_flag};
1110
use environment::Environment;
1211
use eth2_wallet_manager::WalletManager;
12+
use slashing_protection::{SLASHING_PROTECTION_FILENAME, SlashingDatabase};
1313
use std::ffi::OsStr;
1414
use std::fs;
1515
use std::fs::create_dir_all;
@@ -274,7 +274,8 @@ fn existing_validator_count<P: AsRef<Path>>(validator_dir: P) -> Result<usize, S
274274
iter.filter_map(|e| e.ok())
275275
.filter(|e| {
276276
e.file_name() != OsStr::new(validator_definitions::CONFIG_FILENAME)
277-
&& e.file_name() != OsStr::new(eip_3076::SLASHING_PROTECTION_FILENAME)
277+
&& e.file_name()
278+
!= OsStr::new(slashing_protection::SLASHING_PROTECTION_FILENAME)
278279
})
279280
.count()
280281
})

account_manager/src/validator/import.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use account_utils::{
1111
};
1212
use clap::{Arg, ArgAction, ArgMatches, Command};
1313
use clap_utils::FLAG_HEADER;
14-
use eip_3076::{SlashingDatabase, SLASHING_PROTECTION_FILENAME};
14+
use slashing_protection::{SLASHING_PROTECTION_FILENAME, SlashingDatabase};
1515
use std::fs;
1616
use std::path::PathBuf;
1717
use std::thread::sleep;

account_manager/src/validator/slashing_protection.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use clap::{Arg, ArgAction, ArgMatches, Command};
2-
use eip_3076::{
3-
interchange::Interchange, InterchangeError, InterchangeImportOutcome, SlashingDatabase,
4-
SLASHING_PROTECTION_FILENAME,
5-
};
2+
use eip_3076::interchange::{Interchange, InterchangeError, InterchangeImportOutcome};
63
use environment::Environment;
4+
use slashing_protection::{SLASHING_PROTECTION_FILENAME, SlashingDatabase};
75
use std::fs::File;
86
use std::path::PathBuf;
97
use std::str::FromStr;

common/eip_3076/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ types = { workspace = true }
2424

2525
[dev-dependencies]
2626
rayon = { workspace = true }
27-
28-
[[test]]
29-
name = "eip_3076_tests"
30-
path = "tests/main.rs"

common/eip_3076/interchange-tests/.github/workflows/check.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

common/eip_3076/interchange-tests/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

common/eip_3076/interchange-tests/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)