-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start of tower-based networking. #5
Closed
Closed
Conversation
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
36290a3
to
6bd3cda
Compare
Changed base to |
6bd3cda
to
cd01e9d
Compare
2e7d275
to
a2a8376
Compare
This seems to be an issue with `pin-project` resolved in the git branch of `hyper` (but not yet released).
Running zcashd with -debug=net -logips=1 shows Added connection to 127.0.0.1:58476 peer=1 connection from 127.0.0.1:58476 accepted disconnecting peer=1
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 ```
a2a8376
to
6f0a370
Compare
I rewrote a bunch of these commits and I'm going to close this draft PR in favor of a few smaller, more focused ones. |
Merged
11 tasks
skyl
added a commit
to skyl/zebra
that referenced
this pull request
Sep 25, 2024
## What Switch to GSQL postgres instance ## Why Kill vultr stuff completely, database instance for all time. Let's try stage ... Note: switch cloud build after ONE run one prod that copies ;9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
connect
command tozebrad
. This command is explicitly intended to be thrown away later -- it will not be part of the finished code, and it is not intended to cleanly integrate with the rest of the binary, etc.Instead, it's intended to be a stub that we can hook into to poke at a running
zcashd
instance, send whatever messages, dump their bytes, extract test vectors, etc.