Skip to content

Commit 9fc3cf5

Browse files
committed
bip-0144: Add enum values for MSG_WITNESS_{BLOCK,TX}, MSG_FILTERED_WITNESS_BLOCK
Found these missing while working on bitcoin/bitcoin#8880 .
1 parent 6d086e1 commit 9fc3cf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0144.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ and therefore, they have witness hash equal to normal hash.)
103103
<img src=bip-0144/witnesstx.png></img>
104104

105105
=== Relay ===
106-
New inv types MSG_WITNESS_TX and MSG_WITNESS_BLOCK are added, only
106+
New inv types MSG_WITNESS_TX (0x40000001, or (1<<30)+MSG_TX) and MSG_WITNESS_BLOCK (0x40000002, or (1<<30)+MSG_BLOCK) are added, only
107107
for use in getdata. Inventory messages themselves still use just MSG_TX and MSG_BLOCK,
108-
similar to MSG_FILTERED_BLOCK.
108+
similar to MSG_FILTERED_BLOCK. A further inv type MSG_FILTERED_WITNESS_BLOCK (0x40000003, or (1<<30)+MSG_FILTERED_BLOCK) is reserved for future use.
109109

110110
* '''Rationale for not advertizing witnessness in invs''': we don't always use invs anymore (with 'sendheaders' BIP 130), plus it's not useful: implicitly, every transaction and block have a witness, old ones just have empty ones.
111111

0 commit comments

Comments
 (0)