@@ -76,7 +76,7 @@ With *cp_height* 8::
7676blockchain.block.headers
7777========================
7878
79- Return a concatenated chunk of block headers from the main chain.
79+ Return a chunk of block headers from the main chain.
8080
8181**Signature **
8282
@@ -85,6 +85,8 @@ Return a concatenated chunk of block headers from the main chain.
8585 .. versionchanged :: 1.4
8686 *cp_height * parameter added
8787 .. versionchanged :: 1.4.1
88+ .. versionchanged :: 1.6
89+ response contains *headers * field instead of *hex *
8890
8991 *start_height *
9092
@@ -106,17 +108,16 @@ Return a concatenated chunk of block headers from the main chain.
106108 A dictionary with the following members:
107109
108110 * *count *
109-
110111 The number of headers returned, between zero and the number
111112 requested. If the chain has not extended sufficiently far, only
112113 the available headers will be returned. If more headers than
113114 *max * were requested at most *max * will be returned.
114115
115- * *hex *
116+ * *headers *
116117
117- The binary block headers concatenated together in-order as a
118- hexadecimal string. Starting with version 1.4.1, AuxPoW data (if present
119- in the original header) is truncated if *cp_height * is nonzero.
118+ An array containing the binary block headers in-order; each header is a
119+ hexadecimal string. AuxPoW data (if present in the original header) is
120+ truncated if *cp_height * is nonzero.
120121
121122 * *max *
122123
@@ -149,7 +150,11 @@ See :ref:`here <cp_height example>` for an example of *root* and
149150
150151 {
151152 "count": 2,
152- "hex": "0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f49ffff001d1dac2b7c010000006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000982051fd1e4ba744bbbe680e1fee14677ba1a3c3540bf7b1cdb606e857233e0e61bc6649ffff001d01e36299"
153+ "headers":
154+ [
155+ "0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f49ffff001d1dac2b7c",
156+ "010000006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000982051fd1e4ba744bbbe680e1fee14677ba1a3c3540bf7b1cdb606e857233e0e61bc6649ffff001d01e36299"
157+ ],
153158 "max": 2016
154159 }
155160
@@ -161,12 +166,21 @@ be confirmed within a certain number of blocks.
161166
162167**Signature **
163168
164- .. function :: blockchain.estimatefee(number)
169+ .. function :: blockchain.estimatefee(number, mode=None)
170+ .. versionchanged :: 1.6
171+ *mode * argument added
165172
166173 *number *
167174
168175 The number of blocks to target for confirmation.
169176
177+ *mode *
178+
179+ A string to pass to the bitcoind *estimatesmartfee * RPC as the
180+ *estimate_mode * parameter. Optional. If omitted, the corresponding
181+ parameter to the bitcoind RPC is also omitted, i.e. the default
182+ value is determined by bitcoind.
183+
170184**Result **
171185
172186 The estimated transaction fee in whole coin units per kilobyte, as a
@@ -359,15 +373,18 @@ hashes>`.
359373
360374 .. function :: blockchain.scripthash.get_mempool(scripthash)
361375 .. versionadded :: 1.1
376+ .. versionchanged :: 1.6
377+ results must be sorted (previously undefined order)
362378
363379 *scripthash *
364380
365381 The script hash as a hexadecimal string.
366382
367383**Result **
368384
369- A list of mempool transactions in arbitrary order. Each mempool
370- transaction is a dictionary with the following keys:
385+ A list of mempool transactions. The order is the same as when computing the
386+ :ref: `status <status >` of the script hash.
387+ Each mempool transaction is a dictionary with the following keys:
371388
372389 * *height *
373390
@@ -991,6 +1008,7 @@ server.version
9911008==============
9921009
9931010Identify the client to the server and negotiate the protocol version.
1011+ This must be the first message sent on the wire.
9941012Only the first :func: `server.version ` message is accepted.
9951013
9961014**Signature **
0 commit comments