Skip to content

Commit 662a4d6

Browse files
committed
witness-spv is non-trivial
1 parent 337b006 commit 662a4d6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/protocol-methods.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,19 @@ Witness-SPV. Proves that a transaction with a given wtxid was mined in a particu
10871087
A list of hashes the current hash is paired with,
10881088
recursively, in order to trace up to obtain `witness root hash`
10891089
(committed to in the coinbase), deepest pairing first.
1090+
This field in the dict is present IFF the coinbase tx contains a witness commitment.
1091+
Note that even after segwit activation, if the block does not contain any segwit txs,
1092+
the witness commitment is optional.
1093+
Exactly one of the *wmerkle* and *merkle* keys are present.
1094+
1095+
* *merkle*
1096+
1097+
An old-style merkle branch to prove `txid` (against merkle root in block header).
1098+
Same format as in :func:`blockchain.transaction.get_merkle`.
1099+
This field in the dict is present IFF the coinbase tx does NOT contain a witness commitment.
1100+
Note that even after segwit activation, if the block does not contain any segwit txs,
1101+
the witness commitment is optional.
1102+
Exactly one of the *wmerkle* and *merkle* keys are present.
10901103

10911104
**Result Example**
10921105

0 commit comments

Comments
 (0)