consensus_types/common.rs
1// Copyright (c) The Diem Core Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4// Copyright 2021 Conflux Foundation. All rights reserved.
5// Conflux is free software and distributed under GNU General Public License.
6// See http://www.gnu.org/licenses/
7
8use diem_types::{
9 account_address::AccountAddress, transaction::SignedTransaction,
10};
11
12/// The round of a block is a consensus-internal counter, which starts with 0
13/// and increases monotonically. It is used for the protocol safety and liveness
14/// (please see the detailed protocol description).
15pub type Round = u64;
16/// Author refers to the author's account address
17pub type Author = AccountAddress;
18
19/// The payload in block.
20pub type Payload = Vec<SignedTransaction>;