mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
reth-ethereum-forks crate (#5621)
Co-authored-by: root <root@Arindam> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -462,7 +462,7 @@ mod tests {
|
||||
|
||||
let mut builder = EnrBuilder::new("v4");
|
||||
let mut buf = Vec::new();
|
||||
let fork_id = Hardfork::Frontier.fork_id(&MAINNET).unwrap();
|
||||
let fork_id = MAINNET.hardfork_fork_id(Hardfork::Frontier).unwrap();
|
||||
fork_id.encode(&mut buf);
|
||||
builder.ip4(Ipv4Addr::LOCALHOST).udp4(30303).tcp4(30303).add_value(b"eth", &buf);
|
||||
let enr = builder.build(&secret_key).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user