Zebra/zebrad/src
teor d6f3b3dc9a
Parse received addrv2 messages (#3022)
* Revert "Remove commented-out code"

This reverts commit 9e69777925f103ee11e5940bba95b896c828839b.

* Implement deserialization for `addrv2` messages

* Limit addr and addrv2 messages to MAX_ADDRS_IN_MESSAGE

* Clarify address version comments

* Minor cleanups and fixes

* Add preallocation tests for AddrV2

* Add serialization tests for AddrV2

* Use prop_assert in AddrV2 proptests

* Use a generic utility method for deserializing IP addresses in `addrv2`

* Document the purpose of a conversion to MetaAddr

* Fix a comment typo, and clarify that comment

* Clarify the unsupported AddrV2 network ID error and enum variant names

```sh
fastmod AddrV2UnimplementedError UnsupportedAddrV2NetworkIdError zebra-network
fastmod Unimplemented Unsupported zebra-network
```

* Fix and clarify unsupported AddrV2 comments

* Replace `panic!` with `unreachable!`

* Clarify a comment about skipping a length check in a test

* Remove a redundant test

* Basic addr (v1) and addrv2 deserialization tests

* Test deserialized IPv4 and IPv6 values in addr messages

* Remove redundant io::Cursor

* Add comments with expected values of address test vectors
2021-11-12 00:25:23 +00:00
..
async_ext Fix synchronization delay issue (#2921) 2021-10-21 10:34:12 +10:00
bin/zebrad Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
commands Add a queue checker task, to make sure mempool transactions propagate (#2888) 2021-10-18 19:23:21 +00:00
components Parse received addrv2 messages (#3022) 2021-11-12 00:25:23 +00:00
application.rs Update to Tokio 1.13.0 (#2994) 2021-11-02 18:46:57 +00:00
async_ext.rs Fix synchronization delay issue (#2921) 2021-10-21 10:34:12 +10:00
commands.rs Log configured network in every log message (#1568) 2021-01-12 07:46:56 +10:00
components.rs Gossip recently verified block hashes to peers (#2729) 2021-10-07 07:46:37 -03:00
config.rs Add a mempool config section (#2845) 2021-10-07 22:47:37 +00:00
lib.rs Fix synchronization delay issue (#2921) 2021-10-21 10:34:12 +10:00
prelude.rs Fix a deadlock in TokioComponent. 2020-01-15 12:06:31 -08:00
sentry.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00