Files
electroncash-protocol/protocol-changes.rst
T

85 lines
2.2 KiB
ReStructuredText
Raw Normal View History

2018-03-08 13:49:05 +08:00
================
Protocol Changes
================
This documents lists changes made by protocol version.
Version 1.0
===========
Deprecated methods
------------------
* :func:`blockchain.utxo.get_address`
* :func:`blockchain.numblocks.subscribe`
Version 1.1
===========
Changes
-------
* improved semantics of :func:`server.version` to aid protocol
negotiation, and a changed return value.
* :func:`blockchain.transaction.get` no longer takes the *height*
argument that was ignored anyway.
* :func:`blockchain.transaction.broadcast` returns errors like any
other JS RPC call. A transaction hash result is only returned on
success.
New methods
-----------
* :func:`blockchain.scripthash.get_balance`
* :func:`blockchain.scripthash.get_history`
* :func:`blockchain.scripthash.get_mempool`
* :func:`blockchain.scripthash.listunspent`
* :func:`blockchain.scripthash.subscribe`
* :func:`server.features`
* :func:`server.add_peer`
Removed methods
---------------
* :func:`blockchain.utxo.get_address`
* :func:`blockchain.numblocks.subscribe`
2018-03-08 16:43:16 +08:00
.. _version 1.2:
2018-03-08 13:49:05 +08:00
Version 1.2
===========
2018-03-08 14:01:27 +08:00
Changes
-------
2018-03-08 13:49:05 +08:00
* :func:`blockchain.transaction.get` now has an optional parameter
*verbose*.
2018-03-08 16:02:10 +08:00
* :func:`blockchain.headers.subscribe` now has an optional parameter
*raw*.
2018-03-08 17:11:41 +08:00
* :func:`server.vesrion` should not be used for "ping" functionality;
use the new :func:`server.ping` method instead.
2018-03-08 13:49:05 +08:00
2018-03-08 14:01:27 +08:00
New methods
-----------
2018-03-08 13:49:05 +08:00
* :func:`blockchain.block.headers`
* :func:`mempool.get_fee_histogram`
2018-03-08 14:28:15 +08:00
* :func:`server.ping`
2018-03-08 13:49:05 +08:00
2018-03-08 14:01:27 +08:00
Deprecated methods
------------------
2018-03-08 13:49:05 +08:00
* :func:`blockchain.block.get_chunk`. Switch to
:func:`blockchain.block.headers`
* :func:`blockchain.address.get_balance`. Switch to
:func:`blockchain.scripthash.get_balance`.
* :func:`blockchain.address.get_history`. Switch to
:func:`blockchain.scripthash.get_history`.
* :func:`blockchain.address.get_mempool`. Switch to
:func:`blockchain.scripthash.get_mempool`.
* :func:`blockchain.address.listunspent`. Switch to
:func:`blockchain.scripthash.listunspent`.
* :func:`blockchain.address.subscribe`. Switch to
:func:`blockchain.scripthash.subscribe`.
2018-03-08 16:02:10 +08:00
* :func:`blockchain.headers.subscribe` with *raw* other than :const:`True`.