Skip to content

Commit 8ea7134

Browse files
committed
Move VoteCollector into Tendermint
1 parent f607130 commit 8ea7134

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

core/src/consensus/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ mod solo;
2424
pub mod stake;
2525
mod tendermint;
2626
mod validator_set;
27-
pub mod vote_collector;
2827

2928
pub use self::blake_pow::BlakePoW;
3029
pub use self::cuckoo::Cuckoo;

core/src/consensus/tendermint/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod message;
2121
mod network;
2222
mod params;
2323
pub mod types;
24+
pub mod vote_collector;
2425
mod worker;
2526

2627
use std::sync::atomic::AtomicBool;

core/src/consensus/vote_collector.rs renamed to core/src/consensus/tendermint/vote_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use primitives::H256;
2323
use rlp::{Encodable, RlpStream};
2424

2525
use super::stake::Action;
26-
use super::BitSet;
2726
use super::{ConsensusMessage, VoteStep};
27+
use crate::consensus::BitSet;
2828

2929
/// Storing all Proposals, Prevotes and Precommits.
3030
#[derive(Debug)]

core/src/consensus/tendermint/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ use super::network;
3737
use super::params::TimeGapParams;
3838
use super::stake::CUSTOM_ACTION_HANDLER_ID;
3939
use super::types::{Height, Proposal, Step, TendermintSealView, TendermintState, TwoThirdsMajority, View};
40+
use super::vote_collector::{DoubleVote, VoteCollector};
4041
use super::{
4142
BlockHash, ENGINE_TIMEOUT_BROADCAST_STEP_STATE, ENGINE_TIMEOUT_EMPTY_PROPOSAL, ENGINE_TIMEOUT_TOKEN_NONCE_BASE,
4243
SEAL_FIELDS,
@@ -46,7 +47,6 @@ use crate::block::*;
4647
use crate::client::ConsensusClient;
4748
use crate::consensus::signer::EngineSigner;
4849
use crate::consensus::validator_set::{DynamicValidator, ValidatorSet};
49-
use crate::consensus::vote_collector::{DoubleVote, VoteCollector};
5050
use crate::consensus::{EngineError, Seal};
5151
use crate::encoded;
5252
use crate::error::{BlockError, Error};

0 commit comments

Comments
 (0)