mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-10 04:33:59 +01:00
10b7a6d532refactor: make txmempool interface use GenTxid (Pieter Wuille)5c124e1740refactor: make FindTxForGetData use GenTxid (Pieter Wuille)a2bfac8935refactor: use GenTxid in tx request functions (Pieter Wuille)e65d115b72test: request parents of orphan from wtxid relay peer (Anthony Towns)900d7f6c07p2p: enable fetching of orphans from wtxid peers (Pieter Wuille)9efd86a908refactor: add GenTxid (=txid or wtxid) type and use it for tx request logic (Pieter Wuille)d362f19355doc: list support for BIP 339 in doc/bips.md (Pieter Wuille) Pull request description: This is based on https://github.com/bitcoin/bitcoin/pull/18044#discussion_r450687076. A new type `GenTxid` is added to protocol.h, which represents a tagged txid-or-wtxid. The tx request logic is updated to use these instead of uint256s, permitting per-announcement distinguishing of txid/wtxid (instead of assuming that everything we want to request from a wtxid peer is wtx). Then the restriction of orphan-parent requesting to non-wtxid peers is lifted. Also document BIP339 in doc/bips.md. ACKs for top commit: jnewbery: Code review ACK10b7a6d532jonatack: ACK10b7a6d532ajtowns: ACK10b7a6d532-- code review. Using gtxid to replace the is_txid_or_wtxid flag for the mempool functions is nice. naumenkogs: utACK10b7a6dTree-SHA512: d518d13ffd71f8d2b3c175dc905362a7259689e6022a97a0b4f14f1f9fdd87475cf5af70cb12338d1e5d31b52c12e4faaea436114056a2ae9669cb506240758b