We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a0481 commit 4254cd9Copy full SHA for 4254cd9
src/protocol.h
@@ -430,6 +430,14 @@ class CInv
430
std::string GetCommand() const;
431
std::string ToString() const;
432
433
+ // Single-message helper methods
434
+ bool IsMsgTx() const { return type == MSG_TX; }
435
+ bool IsMsgWtx() const { return type == MSG_WTX; }
436
+ bool IsMsgWitnessTx() const { return type == MSG_WITNESS_TX; }
437
+
438
+ // Combined-message helper methods
439
+ bool IsGenTxMsg() const { return type == MSG_TX || type == MSG_WTX || type == MSG_WITNESS_TX; }
440
441
int type;
442
uint256 hash;
443
};
0 commit comments