Skip to content

Commit fc86e26

Browse files
committed
accommodate some review feedback
1 parent c0a6ddf commit fc86e26

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

docs/protocol-basics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ txid (in network byteorder) is used to arrive at a canonical ordering.
162162
(reverse of human display endianness)
163163

164164
* ``height`` is the height of the block the tx is included in,
165-
serialised as 8-bytes, little-endian, signed (two's complement)
165+
serialised as 4-bytes, little-endian, signed (two's complement)
166166

167167
6. For each mempool tx, form a bytearray: ``tx_hash+height+fee``, where:
168168

169169
* ``tx_hash`` is the 32-byte transaction hash in network byteorder
170170
(reverse of human display endianness)
171171

172172
* ``height`` is either ``0`` or ``-1``, as defined above,
173-
serialised as 8-bytes, little-endian, signed (two's complement)
173+
serialised as 4-bytes, little-endian, signed (two's complement)
174174

175175
* ``fee`` is the transaction fee in minimum coin units (satoshis),
176176
serialised as 8-bytes, little-endian, unsigned
@@ -185,7 +185,7 @@ txid (in network byteorder) is used to arrive at a canonical ordering.
185185
If the history contains ``n`` txs, the status is ``status_n``. The ``tx_n``
186186
series consists of, first the confirmed txs touching the script hash,
187187
followed by the mempool txs touching it; formatted as described above, as
188-
bytearrays of length 40 or 48.
188+
bytearrays of length 36 or 44.
189189

190190

191191
Old Status (before protocol 1.5)

docs/protocol-methods.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ be confirmed within a certain number of blocks.
171171
*mode*
172172

173173
A string to pass to the bitcoind *estimatesmartfee* RPC as the
174-
*estimate_mode* parameter. Optional.
174+
*estimate_mode* parameter. Optional. If omitted, the corresponding
175+
parameter to the bitcoind RPC is also omitted, i.e. the default
176+
value is determined by bitcoind.
175177

176178
**Result**
177179

@@ -576,7 +578,7 @@ as an input (spends it).
576578

577579
**Signature**
578580

579-
.. function:: blockchain.outpoint.subscribe(tx_hash, txout_idx)
581+
.. function:: blockchain.outpoint.subscribe(tx_hash, txout_idx, spk_hint=None)
580582
.. versionadded:: 1.5
581583

582584
*tx_hash*
@@ -588,6 +590,12 @@ as an input (spends it).
588590

589591
The output index, a non-negative integer. (sometimes called prevout_n, in inputs)
590592

593+
*spk_hint*
594+
595+
The scriptPubKey (output script) corresponding to the outpoint, as a hexadecimal
596+
string. This is optional, and if provided might be used by the server to find
597+
the outpoint. The behaviour is undefined if an incorrect value is provided.
598+
591599
**Result**
592600

593601
The status of the TXO, taking the mempool into consideration.
@@ -596,7 +604,8 @@ as an input (spends it).
596604
* *height*
597605

598606
The integer height of the block the funding transaction was confirmed in.
599-
``0`` if the funding transaction is in the mempool.
607+
If the funding transaction is in the mempool; the value is
608+
``0`` if all its inputs are confirmed, and ``-1`` otherwise.
600609
This key must be present if and only if there exists a funding transaction
601610
(either in the best chain or in the mempool), regardless of spentness.
602611

@@ -609,7 +618,8 @@ as an input (spends it).
609618
* *spender_height*
610619

611620
The integer height of the block the spending transaction was confirmed in.
612-
``0`` if the spending transaction is in the mempool.
621+
If the spending transaction is in the mempool; the value is
622+
``0`` if all its inputs are confirmed, and ``-1`` otherwise.
613623
This key is present if and only if the *spender_txhash* key is present.
614624

615625

0 commit comments

Comments
 (0)