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:

  1. Why does the node send these two ids, what are the benefits?
  2. Suppose a transaction’s txid is A, and its wtxid is B. Nodes will relay A and B inv announcements to peers. After a client received A first, will the client mark this transaction "fAlreadyHave" when receiving B later?

enter image description here


By pplny

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다