Skip to content

Commit

Permalink
docs: integration docs update (#337)
Browse files Browse the repository at this point in the history
* docs: update zmq notifications link

* docs: minor rewording

* docs: add chainlock wallet notification section

New feature in Core v20
  • Loading branch information
thephez authored Jan 23, 2024
1 parent 51072bb commit 348faa4
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions docs/user/developers/integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ Receiving an InstantSend Transaction introduces two requirements:
2. The ability to adjust “Confirmation Status” independently of block
confirmation.

InstantSend Status is typically determined through direct connection
with the dash daemon, `ZMQ notification <https://github.com/dashpay/dash/blob/master/doc/instantsend.md#zmq>`__,
or through the usage of an external wallet notification script.
InstantSend Status is provided by the dash daemon, typically through a direct
connection (e.g. RPC), :ref:`ZMQ notification
<core:examples-receiving-zmq-notifications>`, or through the usage of an
external wallet notification script.

Direct Connection
^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -301,9 +302,9 @@ Receiving a ChainLock introduces two requirements:
2. The ability to adjust “Confirmation Status” independently of block
confirmation.

ChainLock status is typically determined through direct connection with the Dash
daemon or by a `ZMQ notification
<https://github.com/dashpay/dash/blob/master/doc/zmq.md#usage>`__.
ChainLock status is provided by the dash daemon, typically through a direct
connection (e.g. RPC) or by a :ref:`ZMQ notification
<core:examples-receiving-zmq-notifications>`.

Direct Connection
^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -364,6 +365,15 @@ notifications and return the hash of blocks that receive a ChainLock.
});
})();
Wallet Notification
^^^^^^^^^^^^^^^^^^^

The Dash Core daemon can be configured to execute an external script whenever a
ChainLock is received. This is configured by adding the following line to the
dash.conf file::

chainlocknotify=/path/to/concurrent/safe/handler %s

Additional Resources
--------------------

Expand Down

0 comments on commit 348faa4

Please sign in to comment.