mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make reth-network-peers risc compatible (#13210)
This commit is contained in:
1
.github/assets/check_rv32imac.sh
vendored
1
.github/assets/check_rv32imac.sh
vendored
@ -8,6 +8,7 @@ crates_to_check=(
|
||||
reth-ethereum-primitives
|
||||
reth-primitives-traits
|
||||
reth-optimism-forks
|
||||
reth-network-peers
|
||||
# reth-evm
|
||||
# reth-primitives
|
||||
# reth-optimism-chainspec
|
||||
|
||||
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -428,9 +428,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "alloy-rlp"
|
||||
version = "0.3.9"
|
||||
version = "0.3.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "da0822426598f95e45dd1ea32a738dac057529a709ee645fcc516ffa4cbde08f"
|
||||
checksum = "f542548a609dca89fcd72b3b9f355928cf844d4363c5eed9c5273a3dd225e097"
|
||||
dependencies = [
|
||||
"alloy-rlp-derive",
|
||||
"arrayvec",
|
||||
@ -439,9 +439,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "alloy-rlp-derive"
|
||||
version = "0.3.9"
|
||||
version = "0.3.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2b09cae092c27b6f1bde952653a22708691802e57bfef4a2973b80bea21efd3f"
|
||||
checksum = "5a833d97bf8a5f0f878daf2c8451fff7de7f9de38baa5a45d936ec718d81255a"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
||||
@ -432,7 +432,7 @@ revm-primitives = { version = "14.0.0", default-features = false }
|
||||
alloy-chains = { version = "0.1.32", default-features = false }
|
||||
alloy-dyn-abi = "0.8.11"
|
||||
alloy-primitives = { version = "0.8.11", default-features = false }
|
||||
alloy-rlp = { version = "0.3.4", default-features = false }
|
||||
alloy-rlp = { version = "0.3.10", default-features = false }
|
||||
alloy-sol-types = "0.8.11"
|
||||
alloy-trie = { version = "0.7", default-features = false }
|
||||
|
||||
|
||||
@ -15,8 +15,8 @@ workspace = true
|
||||
|
||||
# eth
|
||||
alloy-primitives = { workspace = true, features = ["rlp"] }
|
||||
alloy-rlp = { workspace = true, features = ["derive"] }
|
||||
enr.workspace = true
|
||||
alloy-rlp = { workspace = true, features = ["derive", "core-net", "core-error"] }
|
||||
enr = { workspace = true, optional = true }
|
||||
|
||||
# crypto
|
||||
|
||||
@ -32,6 +32,7 @@ alloy-primitives = { workspace = true, features = ["rand"] }
|
||||
rand.workspace = true
|
||||
secp256k1 = { workspace = true, features = ["rand"] }
|
||||
serde_json.workspace = true
|
||||
enr.workspace = true
|
||||
tokio = { workspace = true, features = ["net", "macros", "rt"] }
|
||||
|
||||
[features]
|
||||
@ -42,7 +43,7 @@ std = [
|
||||
"secp256k1?/std",
|
||||
"serde_with/std",
|
||||
"thiserror/std",
|
||||
"url/std"
|
||||
"url/std",
|
||||
]
|
||||
secp256k1 = ["dep:secp256k1", "enr/secp256k1"]
|
||||
net = ["dep:tokio", "tokio?/net"]
|
||||
net = ["std", "dep:tokio", "tokio?/net"]
|
||||
|
||||
@ -64,6 +64,7 @@ use alloy_primitives::B512;
|
||||
use core::str::FromStr;
|
||||
|
||||
// Re-export PeerId for ease of use.
|
||||
#[cfg(feature = "secp256k1")]
|
||||
pub use enr::Enr;
|
||||
|
||||
/// Alias for a peer identifier
|
||||
@ -115,8 +116,8 @@ pub fn id2pk(id: PeerId) -> Result<secp256k1::PublicKey, secp256k1::Error> {
|
||||
pub enum AnyNode {
|
||||
/// An "enode:" peer with full ip
|
||||
NodeRecord(NodeRecord),
|
||||
#[cfg(feature = "secp256k1")]
|
||||
/// An "enr:" peer
|
||||
#[cfg(feature = "secp256k1")]
|
||||
Enr(Enr<secp256k1::SecretKey>),
|
||||
/// An incomplete "enode" with only a peer id
|
||||
PeerId(PeerId),
|
||||
|
||||
Reference in New Issue
Block a user