feat: add rlp support for EthVersion (#12221)

This commit is contained in:
Léa Narzis
2024-10-31 15:33:33 +07:00
committed by GitHub
parent e5fc048139
commit c19af293a6
7 changed files with 89 additions and 22 deletions

View File

@ -106,7 +106,8 @@ async fn handshake_eth(p2p_stream: AuthedP2PStream) -> eyre::Result<(AuthedEthSt
.forkid(MAINNET.hardfork_fork_id(EthereumHardfork::Shanghai).unwrap())
.build();
let status = Status { version: p2p_stream.shared_capabilities().eth()?.version(), ..status };
let status =
Status { version: p2p_stream.shared_capabilities().eth()?.version().try_into()?, ..status };
let eth_unauthed = UnauthedEthStream::new(p2p_stream);
Ok(eth_unauthed.handshake(status, fork_filter).await?)
}