2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebrad"
|
2019-10-08 09:25:59 -07:00
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
2019-08-29 14:46:54 -07:00
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[dependencies]
|
2019-11-13 14:03:12 -08:00
|
|
|
rand = "0.7"
|
Add a `connect` command for testing.
With `./src/zcashd -debug=net -logips=1`:
```
2019-09-19 15:24:38 Added connection to 127.0.0.1:35932 peer=1
2019-09-19 15:24:38 connection from 127.0.0.1:35932 accepted
2019-09-19 15:24:38 socket closed
2019-09-19 15:24:38 disconnecting peer=1
```
With `RUST_LOG="trace"`, `cargo run connect`:
```
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version=Version { version: Version(170007), services: Services(1), timestamp: 2019-09-19T15:24:24.530059300Z, address_recv: (Services(1), V4(127.0.0.1:8233)), address_from: (Services(1), V4(127.0.0.1:9000)), nonce: Nonce(1), user_agent: "Zebra Connect", start_height: BlockHeight(0), relay: false }
Sep 19 08:24:24.530 TRACE Task::run: tokio_executor::threadpool::task: state=Running
Sep 19 08:24:24.530 DEBUG Task::run: tokio_net::driver::reactor: adding I/O source token=0
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version_bytes="24e9276476657273696f6e000000000063000000cb30ab03179802000100000000000000a89d835d00000000010000000000000000000000000000000000ffff7f0000012029010000000000000000000000000000000000ffff7f000001232801000000000000000d5a6562726120436f6e6e6563740000000000"
Sep 19 08:24:24.530 TRACE Task::run: log: registering with poller
```
2019-09-11 22:30:32 -07:00
|
|
|
chrono = "0.4"
|
2019-08-29 14:46:54 -07:00
|
|
|
abscissa_core = "0.3.0"
|
|
|
|
failure = "0.1"
|
|
|
|
gumdrop = "0.6"
|
|
|
|
lazy_static = "1"
|
|
|
|
serde = { version = "1", features = ["serde_derive"] }
|
2019-09-09 13:05:42 -07:00
|
|
|
toml = "0.5"
|
2019-10-08 21:10:01 -07:00
|
|
|
|
2019-10-07 15:36:16 -07:00
|
|
|
tokio = "=0.2.0-alpha.6"
|
2019-10-11 10:25:58 -07:00
|
|
|
futures-preview = "=0.3.0-alpha.19"
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2019-10-08 21:10:01 -07:00
|
|
|
tracing = "0.1"
|
|
|
|
tracing-futures = { version = "0.1", features = ["tokio-alpha"], default-features = false }
|
|
|
|
tracing-subscriber = "0.1"
|
|
|
|
tracing-log = "0.1"
|
|
|
|
|
|
|
|
hyper = "=0.13.0-alpha.4"
|
|
|
|
|
|
|
|
tower = "=0.3.0-alpha.2"
|
2019-10-10 18:15:24 -07:00
|
|
|
tower-load = { git = "https://github.com/tower-rs/tower", branch = "v0.3.x"}
|
2019-10-08 21:10:01 -07:00
|
|
|
|
Add a `connect` command for testing.
With `./src/zcashd -debug=net -logips=1`:
```
2019-09-19 15:24:38 Added connection to 127.0.0.1:35932 peer=1
2019-09-19 15:24:38 connection from 127.0.0.1:35932 accepted
2019-09-19 15:24:38 socket closed
2019-09-19 15:24:38 disconnecting peer=1
```
With `RUST_LOG="trace"`, `cargo run connect`:
```
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version=Version { version: Version(170007), services: Services(1), timestamp: 2019-09-19T15:24:24.530059300Z, address_recv: (Services(1), V4(127.0.0.1:8233)), address_from: (Services(1), V4(127.0.0.1:9000)), nonce: Nonce(1), user_agent: "Zebra Connect", start_height: BlockHeight(0), relay: false }
Sep 19 08:24:24.530 TRACE Task::run: tokio_executor::threadpool::task: state=Running
Sep 19 08:24:24.530 DEBUG Task::run: tokio_net::driver::reactor: adding I/O source token=0
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version_bytes="24e9276476657273696f6e000000000063000000cb30ab03179802000100000000000000a89d835d00000000010000000000000000000000000000000000ffff7f0000012029010000000000000000000000000000000000ffff7f000001232801000000000000000d5a6562726120436f6e6e6563740000000000"
Sep 19 08:24:24.530 TRACE Task::run: log: registering with poller
```
2019-09-11 22:30:32 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain" }
|
|
|
|
zebra-network = { path = "../zebra-network" }
|
|
|
|
|
2019-08-29 14:46:54 -07:00
|
|
|
[dev-dependencies.abscissa_core]
|
|
|
|
version = "0.3.0"
|
|
|
|
features = ["testing"]
|