mirror of
https://github.com/bitcoin/bips.git
synced 2025-06-30 12:42:43 +00:00
Merge pull request #380 from achow101/master
Update BIP 144 'havewitness' to service bit
This commit is contained in:
commit
7b30c3d63e
@ -86,9 +86,10 @@ Currently, the only witness objects type supported are script witnesses which co
|
|||||||
* '''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.
|
* '''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.
|
||||||
|
|
||||||
=== Handshake ===
|
=== Handshake ===
|
||||||
A new message 'havewitness' is sent after receiving 'verack' to
|
A node will signal that it can provide witnesses using the following service bit
|
||||||
indicate that a node can provide witness if requested (similar to
|
|
||||||
'sendheaders') (Note: it might be better to signal this with a services bit in the version message)
|
NODE_WITNESS = (1 << 3)
|
||||||
|
|
||||||
|
|
||||||
=== Hashes ===
|
=== Hashes ===
|
||||||
Transaction hashes used in the transaction merkle tree and txin outpoints are always computed using the old non-witness
|
Transaction hashes used in the transaction merkle tree and txin outpoints are always computed using the old non-witness
|
||||||
|
Loading…
x
Reference in New Issue
Block a user