diff --git a/build.gradle b/build.gradle index 4d02d9cc9..4891d3b85 100644 --- a/build.gradle +++ b/build.gradle @@ -38,7 +38,7 @@ plugins { group 'org.lightningj' -version '0.17.0-Beta' +version '0.17.2-Beta' description = "LightningJ - Lightning APIs for Java" diff --git a/docs/index.adoc b/docs/index.adoc index 83b846e50..47bb6ef18 100644 --- a/docs/index.adoc +++ b/docs/index.adoc @@ -40,6 +40,7 @@ to the license agreement can be found link:LICENSE.txt[here]. == Whats New +* 0.17.2-Beta : Generated against LND 0.17.2 API * 0.17.0-Beta : Generated against LND 0.17.0 API, upgraded to Gradle 8.1 * 0.16.2-Beta : Generated against LND 0.16.2 API, added support for ChainKit RPC Service. * 0.16.0-Beta : Generated against LND 0.16.0 API diff --git a/src/main/proto/chainkit.proto b/src/main/proto/chainkit.proto index 168d7ed47..da041760c 100644 --- a/src/main/proto/chainkit.proto +++ b/src/main/proto/chainkit.proto @@ -1,7 +1,7 @@ /** * This file is fetched from https://github.com/lightningnetwork/lnd/blob/master/lnrpc/rpc.proto * And is distributed under LNDs MIT License. - * LND (561bf82) tag : Downloaded 2022-05-18 + * LND (35bfd27) tag : Downloaded 2023-11-21 */ syntax = "proto3"; @@ -18,6 +18,11 @@ service ChainKit { */ rpc GetBlock (GetBlockRequest) returns (GetBlockResponse); + /* lncli: `chain getblockheader` + GetBlockHeader returns a block header with a particular block hash. + */ + rpc GetBlockHeader (GetBlockHeaderRequest) returns (GetBlockHeaderResponse); + /* lncli: `chain getbestblock` GetBestBlock returns the block hash and current height from the valid most-work chain. @@ -43,6 +48,16 @@ message GetBlockResponse { bytes raw_block = 1; } +message GetBlockHeaderRequest { + // The hash of the block with the requested header. + bytes block_hash = 1; +} + +message GetBlockHeaderResponse { + // The header of the block with the requested hash. + bytes raw_block_header = 1; +} + message GetBestBlockRequest { }