-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
880d0c7
commit 313b2ea
Showing
138 changed files
with
372 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[cargo-new] | ||
name = "Nervos Core Dev" | ||
email = "[email protected]" | ||
|
||
edition = "2018" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,16 @@ name = "ckb" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
build = "build.rs" | ||
|
||
[dependencies] | ||
clap = { version = "2" } | ||
serde = "1.0" | ||
serde_derive = "1.0" | ||
log = "0.4" | ||
crossbeam-channel = "0.3" | ||
channel = { package= "crossbeam-channel", version = "0.3" } | ||
config-tool = { package= "config", version = "0.9" } | ||
ckb-util = { path = "util" } | ||
ckb-core = { path = "core" } | ||
ckb-chain = { path = "chain" } | ||
|
@@ -33,7 +35,6 @@ dir = { path = "util/dir" } | |
ctrlc = { version = "3.1", features = ["termination"] } | ||
lazy_static = "1.0" | ||
ckb-sync = { path = "sync"} | ||
config = "0.9" | ||
serde_json = "1.0" | ||
crypto = { path = "util/crypto"} | ||
ckb-instrument = { path = "util/instrument", features = ["progress_bar"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "ckb-benches" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "ckb-chain" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
serde = "1.0" | ||
|
@@ -21,7 +22,8 @@ numext-fixed-hash = { version = "0.1", features = ["support_rand", "support_heap | |
numext-fixed-uint = { version = "0.1", features = ["support_rand", "support_heapsize", "support_serde"] } | ||
lru-cache = { git = "https://github.com/nervosnetwork/lru-cache" } | ||
fnv = "1.0.3" | ||
crossbeam-channel = "0.3" | ||
channel = { package= "crossbeam-channel", version = "0.3" } | ||
|
||
|
||
[dev-dependencies] | ||
env_logger = "0.6" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "ckb-core" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
serde = "1.0" | ||
|
@@ -14,7 +15,7 @@ hash = {path = "../util/hash"} | |
crypto = {path = "../util/crypto"} | ||
ckb-time = { path = "../util/time" } | ||
bit-vec = "0.5.0" | ||
crossbeam-channel = "0.3" | ||
channel = { package= "crossbeam-channel", version = "0.3" } | ||
rayon = "1.0" | ||
ckb-util = { path = "../util" } | ||
fnv = "1.0.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "ckb-db" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
bincode = "1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "ckb-miner" | |
version = "0.1.0" | ||
license = "MIT" | ||
authors = ["Nervos Core Dev <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
log = "0.4" | ||
|
@@ -18,7 +19,7 @@ flatbuffers = "0.5.0" | |
rand = "0.6" | ||
serde = "1.0" | ||
serde_derive = "1.0" | ||
crossbeam-channel = "0.3" | ||
channel = { package= "crossbeam-channel", version = "0.3" } | ||
fnv = "1.0.3" | ||
jsonrpc = { git = "https://github.com/quake/rust-jsonrpc" } | ||
serde_json = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
extern crate ckb_core; | ||
extern crate ckb_notify; | ||
extern crate ckb_pool; | ||
extern crate ckb_pow; | ||
extern crate ckb_shared; | ||
extern crate ckb_time; | ||
extern crate ckb_util; | ||
extern crate fnv; | ||
extern crate jsonrpc; | ||
extern crate numext_fixed_hash; | ||
extern crate rand; | ||
#[macro_use] | ||
extern crate serde_derive; | ||
#[macro_use] | ||
extern crate log; | ||
#[macro_use] | ||
extern crate serde_json; | ||
#[macro_use] | ||
extern crate crossbeam_channel as channel; | ||
|
||
mod agent; | ||
mod client; | ||
mod miner; | ||
mod types; | ||
|
||
pub use agent::{Agent, AgentController, AgentReceivers}; | ||
pub use client::Client; | ||
pub use miner::Miner; | ||
pub use types::{BlockTemplate, Config, Shared}; | ||
pub use crate::agent::{Agent, AgentController, AgentReceivers}; | ||
pub use crate::client::Client; | ||
pub use crate::miner::Miner; | ||
pub use crate::types::{BlockTemplate, Config, Shared}; |
Oops, something went wrong.