Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2873: [RPC][MN] Serialize in ADDRV2 for TorV3 in RPC's
6d3d535 Deserialize AddrV1 first if fails deserialize AddrV2 (Liquid369) afd0c73 Fix MNB Serialization for ADDRv2 in RPCs (Liquid369) Pull request description: With some work being done in PIVX-Labs by @Duddino we noticed that the RPC's for decoding and creating master node broadcasts are in Pre-BIP 155 format or AddrV1 serialization. In order for us to create support for Tor master nodes in MPW, we need these RPC's to be able to serialize a TorV3 address. There's a few caveats for decoding that there may be other solutions provided by someone else, but for now since receiving the stream, we cannot tell if its PreBIP155 or not, so we unserialize by AddrV1 first and if it fails, we check and attempt AddrV2. ACKs for top commit: Liquid369: > tACK [6d3d535](6d3d535) tested on Duddino's node throught MPW, works as intended. Duddino: tACK 6d3d535 because the above is a really small nitpick panleone: tACK 6d3d535 tested on Duddino's node throught MPW, works as intended. Fuzzbawls: ACK 6d3d535 Tree-SHA512: a5f66ef17a8c2d33240bb37e4f6c166ba76cbc5c43de0bc9f92209f44846ab73f41ba146a9d17284ea418af356e7d898f9ee2b1c4c4f3bc3436206712be18389
- Loading branch information