Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
WIP - Removed common crate and other unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
octavonce committed Jul 22, 2019
1 parent d0a3da9 commit 4915dca
Show file tree
Hide file tree
Showing 20 changed files with 63 additions and 749 deletions.
67 changes: 38 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Expand Up @@ -9,7 +9,6 @@ members = [
"src/account",
"src/causality",
"src/chain",
"src/common",
"src/consensus",
"src/crypto",
"src/events",
Expand Down Expand Up @@ -46,7 +45,6 @@ consensus = { path = "src/consensus" }
persistence = { path = "src/persistence" }
network = { path = "src/network" }
transactions = { path = "src/transactions" }
common = { path = "src/common" }
chain = { path = "src/chain" }
miner = { path = "src/miner" }
mimalloc = "0.1.5"
Expand Down
1 change: 0 additions & 1 deletion src/chain/Cargo.toml
Expand Up @@ -17,7 +17,6 @@ patricia-trie = "0.3.0"
account = { path = "../account" }
crypto = { path = "../crypto" }
events = { path = "../events" }
common = { path = "../common" }
consensus = { path = "../consensus" }
persistence = { path = "../persistence" }
bin-tools = { path = "../util/bin-tools/" }
Expand Down
3 changes: 1 addition & 2 deletions src/chain/src/block.rs
Expand Up @@ -17,7 +17,6 @@
*/

use crate::{ChainErr, EasyBlock, HardBlock, StateBlock};
use common::Checkpointable;
use chrono::prelude::*;
use crypto::Hash;
use std::boxed::Box;
Expand All @@ -29,7 +28,7 @@ use std::hash::Hash as HashTrait;
/// Generic block interface
pub trait Block: Debug + PartialEq + Eq + HashTrait {
/// Per tip validation state
type ChainState: Clone + Checkpointable + Debug;
type ChainState: Clone + Debug;

/// Size of the block cache.
const BLOCK_CACHE_SIZE: usize = 20;
Expand Down

0 comments on commit 4915dca

Please sign in to comment.