diff --git a/crates/networking/rpc/net/mod.rs b/crates/networking/rpc/net/mod.rs index 63805ea512..2820422327 100644 --- a/crates/networking/rpc/net/mod.rs +++ b/crates/networking/rpc/net/mod.rs @@ -11,3 +11,9 @@ pub fn version(_req: &RpcRequest, context: RpcApiContext) -> Result Result { + let value = serde_json::to_value("0")?; + Ok(value) +} diff --git a/crates/networking/rpc/rpc.rs b/crates/networking/rpc/rpc.rs index 03ab8cd499..8203751ab0 100644 --- a/crates/networking/rpc/rpc.rs +++ b/crates/networking/rpc/rpc.rs @@ -450,6 +450,7 @@ pub fn map_web3_requests(req: &RpcRequest, context: RpcApiContext) -> Result Result { match req.method.as_str() { "net_version" => net::version(req, contex), + "net_peerCount" => net::peer_count(req, contex), unknown_net_method => Err(RpcErr::MethodNotFound(unknown_net_method.to_owned())), } } diff --git a/test_data/network_params.yaml b/test_data/network_params.yaml index 01a981ae7f..0725144f04 100644 --- a/test_data/network_params.yaml +++ b/test_data/network_params.yaml @@ -32,10 +32,13 @@ network_params: # The address of the staking contract address on the Eth1 chain deposit_contract_address: "0x4242424242424242424242424242424242424242" +ethereum_metrics_exporter_enabled: true + additional_services: - dora - forkmon - tx_fuzz + - prometheus_grafana tx_fuzz_params: # A list of optional extra params that will be passed to the TX Fuzz container for modifying its behaviour @@ -46,3 +49,7 @@ blockscout_params: image: "blockscout/blockscout:latest" verif_image: "ghcr.io/blockscout/smart-contract-verifier:latest" frontend_image: "ghcr.io/blockscout/frontend:latest" + +prometheus_params: + # TODO: switch to latest when it points to v3.x + image: "prom/prometheus:v3.2.1"