Go to file
Henry de Valence f45bbeba98
Replace `Version` `MetaAddr` with `(Services, SocketAddr)`. (#12)
* Replace Version MetaAddr by (Services, SocketAddr).

The version handshake message doesn't include last-seen timestamps for
the address fields, unlike other messages, so instead of modeling the
message data with a `MetaAddr` (which includes a timestamp), we should
just use a tuple.

* Simplify try_read_version implementation.

Because we no longer need to construct fake timestamps for the
`MetaAddr` fields, we don't need to use any of the parsed fields while
parsing later fields, and we can neatly wrap up the entire parsing logic
into a single expression.

* fmt

I didn't have the toolchain-specified `rustfmt` because I was mostly
offline and couldn't download it.
2019-09-19 09:38:02 -07:00
.github/workflows Continuous integration (#2) 2019-09-05 13:08:48 -04:00
zebra-chain Move `Transaction` and related types to their own module (#9) 2019-09-19 07:45:37 -07:00
zebra-client Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebra-consensus Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebra-network Replace `Version` `MetaAddr` with `(Services, SocketAddr)`. (#12) 2019-09-19 09:38:02 -07:00
zebra-reactor Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebra-rpc Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebra-script Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebra-storage Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
zebrad Fix type with updated tracing-subscriber 2019-09-18 17:32:06 -04:00
.gitignore Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
.rustfmt.toml Tracing endpoint (#3) 2019-09-09 13:05:42 -07:00
Cargo.toml Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
Dockerfile Continuous integration (#2) 2019-09-05 13:08:48 -04:00
cloudbuild.yaml Continuous integration (#2) 2019-09-05 13:08:48 -04:00
rust-toolchain Tracing endpoint (#3) 2019-09-09 13:05:42 -07:00