I’m reading the source code of Bitcoin Core, and I found that in the
inv process, nodes will relay both txid and wtxid to other peer nodes. I have the following questions:
- Why does the node send these two ids, what are the benefits?
- Suppose a transaction’s txid is A, and its wtxid is B. Nodes will relay A and B
invannouncements to peers. After a client received A first, will the client mark this transaction "fAlreadyHave" when receiving B later?