cfx_rpc_cfx_types/pos/
block.rs1use super::Decision;
6use cfx_types::{H256, U64};
7use serde::Serialize;
8
9#[derive(Debug, Serialize, Clone)]
10#[serde(rename_all = "camelCase")]
11pub struct Block {
12 pub hash: H256,
14 pub height: U64,
16 pub epoch: U64,
18 pub round: U64,
20 pub last_tx_number: U64,
22 pub miner: Option<H256>,
24 pub parent_hash: H256,
26 pub timestamp: U64,
28 pub pivot_decision: Option<Decision>,
30 pub signatures: Vec<Signature>,
32}
33
34#[derive(Debug, Serialize, Clone)]
35#[serde(rename_all = "camelCase")]
36pub struct Signature {
37 pub account: H256,
39 pub votes: U64,
43}