From 0fbf7341475ecd875f9f180d7ffa37c17c35138f Mon Sep 17 00:00:00 2001 From: Alex Pozhylenkov Date: Thu, 12 May 2022 04:44:29 +0300 Subject: [PATCH] refactor header size field (#391) --- client/rpc/src/eth_pubsub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/src/eth_pubsub.rs b/client/rpc/src/eth_pubsub.rs index 1ba4af164502b..f72aa8a9bb1eb 100644 --- a/client/rpc/src/eth_pubsub.rs +++ b/client/rpc/src/eth_pubsub.rs @@ -142,7 +142,7 @@ impl SubscriptionResult { Bytes(block.header.mix_hash.as_bytes().to_vec()), Bytes(block.header.nonce.as_bytes().to_vec()), ], - size: Some(U256::from(rlp::encode(&block).len() as u32)), + size: Some(U256::from(rlp::encode(&block.header).len() as u32)), }, extra_info: BTreeMap::new(), }))