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-12-20 11:20:04 -08:00
|
|
|
abscissa_core = "0.5"
|
|
|
|
gumdrop = "0.7"
|
2019-08-29 14:46:54 -07:00
|
|
|
serde = { version = "1", features = ["serde_derive"] }
|
2019-09-09 13:05:42 -07:00
|
|
|
toml = "0.5"
|
2019-12-20 11:20:04 -08:00
|
|
|
thiserror = "1"
|
2019-10-08 21:10:01 -07:00
|
|
|
|
2019-12-13 14:25:14 -08:00
|
|
|
tokio = { version = "0.2", features = ["time", "rt-threaded", "stream"] }
|
|
|
|
futures = "0.3"
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2019-10-08 21:10:01 -07:00
|
|
|
tracing = "0.1"
|
2019-12-13 14:25:14 -08:00
|
|
|
tracing-futures = "0.2"
|
2019-10-08 21:10:01 -07:00
|
|
|
tracing-log = "0.1"
|
|
|
|
|
2020-04-17 12:45:46 -07:00
|
|
|
hyper = "0.13.5"
|
2019-10-08 21:10:01 -07:00
|
|
|
|
2020-01-15 11:11:07 -08:00
|
|
|
tower = "0.3"
|
2019-10-08 21:10:01 -07:00
|
|
|
|
2020-02-14 13:38:33 -08:00
|
|
|
metrics-runtime = "0.13"
|
|
|
|
metrics = "0.12"
|
|
|
|
|
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" }
|
2020-05-28 20:01:24 -07:00
|
|
|
eyre = "0.4.2"
|
|
|
|
color-eyre = "0.3.2"
|
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
|
|
|
|
2019-12-20 11:20:04 -08:00
|
|
|
[dev-dependencies]
|
|
|
|
abscissa_core = { version = "0.5", features = ["testing"] }
|
2020-05-13 16:53:57 -07:00
|
|
|
once_cell = "1.4"
|