Zebra/zebra-network/src/protocol/external
teor 806dd0f24c
feat(net): return peer metadata from `connect_isolated` functions (#4870)
* Move version into a ConnectionInfo struct

* Add negotiated version to ConnectionInfo

Part of this change was generated using:
```
fastmod --fixed-strings ".version(" ".remote_version(" zebra-network
```

* Add the peer address to ConnectionInfo, add ConnectionInfo to Connection

* Return a Client instance from connect_isolated_* functions

This allows library users to access client ConnectionInfo.

* Add and improve debug formatting

* Add peer services and user agent to ConnectionInfo

* Export the Client type, and fix up a zebrad test

* Export types used by the public API

* Split VersionMessage into its own struct

* Use VersionMessage in ConnectionInfo

* Add a public API test for ConnectionInfo

* Wrap ConnectionInfo in an Arc

* Fix some doc links
2022-09-14 15:00:25 +00:00
..
addr lint(clippy): add `unwrap_in_result` lint (#4667) 2022-06-28 06:22:07 +00:00
tests build(deps): bump insta from 1.15.0 to 1.17.1 (#4884) 2022-08-04 15:44:44 +00:00
addr.rs fix(doc): Fix various doc warnings, part 3 (#4611) 2022-06-15 03:57:19 +00:00
arbitrary.rs fix(doc): Fix various doc warnings, part 3 (#4611) 2022-06-15 03:57:19 +00:00
codec.rs feat(net): return peer metadata from `connect_isolated` functions (#4870) 2022-09-14 15:00:25 +00:00
inv.rs 3. Send notfound when Zebra doesn't have a block or transaction (#3466) 2022-02-14 01:51:34 +00:00
message.rs feat(net): return peer metadata from `connect_isolated` functions (#4870) 2022-09-14 15:00:25 +00:00
tests.rs Parse `MSG_WTX` inventory type (part of ZIP-239) (#2446) 2021-07-07 11:06:11 +10:00
types.rs Resolve unnecessary borrow lint and remove redundant imports (#5045) 2022-09-02 18:20:32 +00:00