mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Add support for tx-relay via wtxid
This adds a field to CNodeState that tracks whether to relay transactions with that peer via wtxid, instead of txid. As of this commit the field will always be false, but in a later commit we will add a way to negotiate turning this on via p2p messages exchanged with the peer.
This commit is contained in:
@@ -177,6 +177,8 @@ std::string CInv::GetCommand() const
|
||||
switch (masked)
|
||||
{
|
||||
case MSG_TX: return cmd.append(NetMsgType::TX);
|
||||
// WTX is not a message type, just an inv type
|
||||
case MSG_WTX: return cmd.append("wtx");
|
||||
case MSG_BLOCK: return cmd.append(NetMsgType::BLOCK);
|
||||
case MSG_FILTERED_BLOCK: return cmd.append(NetMsgType::MERKLEBLOCK);
|
||||
case MSG_CMPCT_BLOCK: return cmd.append(NetMsgType::CMPCTBLOCK);
|
||||
|
||||
Reference in New Issue
Block a user