Skip to content

Commit

Permalink
Merge pull request #89 from lightningj-org/support_1_17_1
Browse files Browse the repository at this point in the history
Updated support for lnd 1.17.2
  • Loading branch information
herrvendil authored Nov 22, 2023
2 parents fd2873b + 71fdf5d commit c9c32c9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ plugins {

group 'org.lightningj'

version '0.17.0-Beta'
version '0.17.2-Beta'

description = "LightningJ - Lightning APIs for Java"

Expand Down
1 change: 1 addition & 0 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 16 additions & 1 deletion src/main/proto/chainkit.proto
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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.
Expand All @@ -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 {
}

Expand Down

0 comments on commit c9c32c9

Please sign in to comment.