From 4b7f88367da13aad921df4fa1b6af8dc01ac7e74 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 12 May 2023 23:22:20 -0700 Subject: [PATCH] fix serializing /status --- web3_proxy/src/rpcs/consensus.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web3_proxy/src/rpcs/consensus.rs b/web3_proxy/src/rpcs/consensus.rs index 3b0d5060..8807895d 100644 --- a/web3_proxy/src/rpcs/consensus.rs +++ b/web3_proxy/src/rpcs/consensus.rs @@ -92,10 +92,20 @@ pub type RankedRpcMap = BTreeMap>>; pub struct ConsensusWeb3Rpcs { pub(crate) tier: u64, pub(crate) backups_needed: bool, + + // TODO: this is already inside best_rpcs. give that a shorter serialize here and then include this again + #[serde(skip_serializing)] pub(crate) head_block: Web3ProxyBlock, + + // TODO: smaller serialize pub(crate) best_rpcs: Vec>, + + // TODO: make this work. the key needs to be a string + #[serde(skip_serializing)] pub(crate) other_rpcs: RankedRpcMap, + // TODO: make this work. the key needs to be a string + #[serde(skip_serializing)] rpc_data: HashMap, RpcData>, }