mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
Merge pull request #6481 from torkelrogstad/2022-04-30-chain-notifier
chainrpc: clarify documentation
This commit is contained in:
@ -206,6 +206,9 @@ close to continue after a peer disconnect](https://github.com/lightningnetwork/l
|
|||||||
options](https://github.com/lightningnetwork/lnd/pull/6064) to allow
|
options](https://github.com/lightningnetwork/lnd/pull/6064) to allow
|
||||||
specifying non-default paths for the configuration and RPC cookie files.
|
specifying non-default paths for the configuration and RPC cookie files.
|
||||||
|
|
||||||
|
* [Clarify comment](https://github.com/lightningnetwork/lnd/pull/6481) on
|
||||||
|
`chainnotifier.RegisterConfirmationsNtfn`.
|
||||||
|
|
||||||
## RPC Server
|
## RPC Server
|
||||||
|
|
||||||
* [Add value to the field
|
* [Add value to the field
|
||||||
|
@ -12,9 +12,11 @@ service ChainNotifier {
|
|||||||
registers an intent for a client to be notified once a confirmation request
|
registers an intent for a client to be notified once a confirmation request
|
||||||
has reached its required number of confirmations on-chain.
|
has reached its required number of confirmations on-chain.
|
||||||
|
|
||||||
A client can specify whether the confirmation request should be for a
|
A confirmation request must have a valid output script. It is also possible
|
||||||
particular transaction by its hash or for an output script by specifying a
|
to give a transaction ID. If the transaction ID is not set, a notification
|
||||||
zero hash.
|
is sent once the output script confirms. If the transaction ID is also set,
|
||||||
|
a notification is sent once the output script confirms in the given
|
||||||
|
transaction.
|
||||||
*/
|
*/
|
||||||
rpc RegisterConfirmationsNtfn (ConfRequest) returns (stream ConfEvent);
|
rpc RegisterConfirmationsNtfn (ConfRequest) returns (stream ConfEvent);
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
"/v2/chainnotifier/register/confirmations": {
|
"/v2/chainnotifier/register/confirmations": {
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "RegisterConfirmationsNtfn is a synchronous response-streaming RPC that\nregisters an intent for a client to be notified once a confirmation request\nhas reached its required number of confirmations on-chain.",
|
"summary": "RegisterConfirmationsNtfn is a synchronous response-streaming RPC that\nregisters an intent for a client to be notified once a confirmation request\nhas reached its required number of confirmations on-chain.",
|
||||||
"description": "A client can specify whether the confirmation request should be for a\nparticular transaction by its hash or for an output script by specifying a\nzero hash.",
|
"description": "A confirmation request must have a valid output script. It is also possible\nto give a transaction ID. If the transaction ID is not set, a notification\nis sent once the output script confirms. If the transaction ID is also set,\na notification is sent once the output script confirms in the given\ntransaction.",
|
||||||
"operationId": "ChainNotifier_RegisterConfirmationsNtfn",
|
"operationId": "ChainNotifier_RegisterConfirmationsNtfn",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
@ -23,9 +23,11 @@ type ChainNotifierClient interface {
|
|||||||
//registers an intent for a client to be notified once a confirmation request
|
//registers an intent for a client to be notified once a confirmation request
|
||||||
//has reached its required number of confirmations on-chain.
|
//has reached its required number of confirmations on-chain.
|
||||||
//
|
//
|
||||||
//A client can specify whether the confirmation request should be for a
|
//A confirmation request must have a valid output script. It is also possible
|
||||||
//particular transaction by its hash or for an output script by specifying a
|
//to give a transaction ID. If the transaction ID is not set, a notification
|
||||||
//zero hash.
|
//is sent once the output script confirms. If the transaction ID is also set,
|
||||||
|
//a notification is sent once the output script confirms in the given
|
||||||
|
//transaction.
|
||||||
RegisterConfirmationsNtfn(ctx context.Context, in *ConfRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterConfirmationsNtfnClient, error)
|
RegisterConfirmationsNtfn(ctx context.Context, in *ConfRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterConfirmationsNtfnClient, error)
|
||||||
//
|
//
|
||||||
//RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
|
//RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
|
||||||
@ -161,9 +163,11 @@ type ChainNotifierServer interface {
|
|||||||
//registers an intent for a client to be notified once a confirmation request
|
//registers an intent for a client to be notified once a confirmation request
|
||||||
//has reached its required number of confirmations on-chain.
|
//has reached its required number of confirmations on-chain.
|
||||||
//
|
//
|
||||||
//A client can specify whether the confirmation request should be for a
|
//A confirmation request must have a valid output script. It is also possible
|
||||||
//particular transaction by its hash or for an output script by specifying a
|
//to give a transaction ID. If the transaction ID is not set, a notification
|
||||||
//zero hash.
|
//is sent once the output script confirms. If the transaction ID is also set,
|
||||||
|
//a notification is sent once the output script confirms in the given
|
||||||
|
//transaction.
|
||||||
RegisterConfirmationsNtfn(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error
|
RegisterConfirmationsNtfn(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error
|
||||||
//
|
//
|
||||||
//RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
|
//RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
|
||||||
|
Reference in New Issue
Block a user