Skip to content

Commit

Permalink
Merge pull request #6481 from torkelrogstad/2022-04-30-chain-notifier
Browse files Browse the repository at this point in the history
chainrpc: clarify documentation
  • Loading branch information
guggero authored May 2, 2022
2 parents 9bbee09 + d6db386 commit aca2299
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes/release-notes-0.15.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

* [Add value to the field
Expand Down
8 changes: 5 additions & 3 deletions lnrpc/chainrpc/chainnotifier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ service ChainNotifier {
registers an intent for a client to be notified once a confirmation request
has reached its required number of confirmations on-chain.
A client can specify whether the confirmation request should be for a
particular transaction by its hash or for an output script by specifying a
zero hash.
A confirmation request must have a valid output script. It is also possible
to give a transaction ID. If the transaction ID is not set, a notification
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);

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/chainrpc/chainnotifier.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"/v2/chainnotifier/register/confirmations": {
"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.",
"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",
"responses": {
"200": {
Expand Down
16 changes: 10 additions & 6 deletions lnrpc/chainrpc/chainnotifier_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aca2299

Please sign in to comment.