Skip to content

Commit

Permalink
refactor header size field (paritytech#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy authored May 12, 2022
1 parent 4ad1dab commit 0fbf734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/rpc/src/eth_pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}))
Expand Down

0 comments on commit 0fbf734

Please sign in to comment.