Skip to content

Commit 7b30c3d

Browse files
committed
Merge pull request bitcoin#380 from achow101/master
Update BIP 144 'havewitness' to service bit
2 parents 6015939 + dde47fc commit 7b30c3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bip-0144.mediawiki

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ Currently, the only witness objects type supported are script witnesses which co
8686
* '''Rationale for the 0x01 flag byte in between''': this will allow us to easily add more extra non-committed data to transactions (like txouts being spent, ...). It can be interpreted as a bitvector.
8787
8888
=== Handshake ===
89-
A new message 'havewitness' is sent after receiving 'verack' to
90-
indicate that a node can provide witness if requested (similar to
91-
'sendheaders') (Note: it might be better to signal this with a services bit in the version message)
89+
A node will signal that it can provide witnesses using the following service bit
90+
91+
NODE_WITNESS = (1 << 3)
92+
9293

9394
=== Hashes ===
9495
Transaction hashes used in the transaction merkle tree and txin outpoints are always computed using the old non-witness

0 commit comments

Comments
 (0)