Zebra/zebra-chain/src/transaction
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
..
tests Parse received addrv2 messages (#3022) 2021-11-12 00:25:23 +00:00
arbitrary.rs Add `zcash_serialized_size()` to `ZcashSerialize` trait (#2824) 2021-10-06 22:40:11 +00:00
auth_digest.rs Stop ignoring the mempool conflicting transaction reject list size limit (#2855) 2021-10-12 10:35:50 +10:00
hash.rs Use unmined types for transaction verifier mempool requests and responses (#2666) 2021-08-25 21:02:47 +00:00
joinsplit.rs Refactor mempool spend conflict checks to increase performance (#2826) 2021-10-10 23:54:46 +00:00
lock_time.rs Security: Avoid silently corrupting invalid times during serialization (#2149) 2021-05-17 16:53:10 -04:00
memo.rs Fix a test failure due to ' debug format changes in Rust 2021-04-14 23:45:36 -04:00
serialize.rs Simplify preallocate tests (#3032) 2021-11-11 07:53:21 +10:00
sighash.rs Always compute sighash with librustzcash (#2469) 2021-07-09 09:55:08 +10:00
tests.rs Move the preallocate tests into their own files (#1977) 2021-04-07 12:32:27 +10:00
txid.rs Add ZIP-0244 TxId Digest support (#2129) 2021-07-06 09:58:22 -03:00
unmined.rs ZIP-401: weighted random mempool eviction (#2889) 2021-10-27 00:21:19 +00:00