Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 9d01992

Browse files
committed
Update RPC and Binaries
1 parent a6fc5b6 commit 9d01992

File tree

2 files changed

+50
-12
lines changed

2 files changed

+50
-12
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ npm run setup
2626

2727
If the window doesn't load after running `npm start`: try clicking on dev tools window and hitting `cmd-r` to refresh the window.
2828

29+
### Building
30+
31+
To build binaries for OSX:
32+
```
33+
cd $GOPATH/src/github.com/lightningnetwork/lnd
34+
git pull
35+
glide install
36+
go install . ./cmd/...
37+
```
38+
39+
To build binaries for Windows:
40+
```
41+
cd $GOPATH/src/github.com/lightningnetwork/lnd
42+
git pull
43+
glide install
44+
GOOS=windows GOARCH=amd64 go build -v
45+
```
46+
2947
### Packaging
3048
To package the app for all platforms run `npm run package-all-electron`. Make sure you have xquartz `brew cask install xquartz` wine installed `brew install wine`. If you run into `ENFILE: file table overflow` as an error put `ulimit -n 2560` in your bash profile.
3149

packages/lightning-desktop/rpc.proto

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ message GetInfoResponse {
312312

313313
bool synced_to_chain = 9 [ json_name = "synced_to_chain" ];
314314
bool testnet = 10 [ json_name = "testnet" ];
315+
316+
repeated string chains = 11[ json_name = "chains" ] ;
315317
}
316318

317319
message ConfirmationUpdate {
@@ -367,29 +369,47 @@ message OpenStatusUpdate {
367369
}
368370
}
369371

370-
enum ChannelStatus {
371-
ALL = 0;
372-
OPENING = 1;
373-
CLOSING = 2;
374-
}
375-
message PendingChannelRequest {
376-
ChannelStatus status = 1;
377-
}
372+
message PendingChannelRequest {}
378373
message PendingChannelResponse {
379374
message PendingChannel {
380-
string identity_key = 1 [ json_name = "identity_key" ];
375+
string remote_node_pub = 1 [ json_name = "remote_node_pub" ];
381376
string channel_point = 2 [ json_name = "channel_point" ];
382377

383378
int64 capacity = 3 [ json_name = "capacity" ];
379+
384380
int64 local_balance = 4 [ json_name = "local_balance" ];
385381
int64 remote_balance = 5 [ json_name = "remote_balance" ];
382+
}
383+
384+
message PendingOpenChannel {
385+
PendingChannel channel = 1 [ json_name = "channel" ];
386+
387+
uint32 confirmation_height = 2 [ json_name = "confirmation_height" ];
388+
uint32 blocks_till_open = 3 [ json_name = "blocks_till_open" ];
389+
}
390+
391+
message ClosedChannel {
392+
PendingChannel channel = 1;
393+
394+
string closing_txid = 2 [ json_name = "closing_txid" ];
395+
}
396+
397+
message ForceClosedChannel {
398+
PendingChannel channel = 1 [ json_name = "channel" ];
399+
400+
// TODO(roasbeef): HTLC's as well?
386401

387-
string closing_txid = 6 [ json_name = "closing_txid" ];
402+
string closing_txid = 2 [ json_name = "closing_txid" ];
388403

389-
ChannelStatus status = 7 [ json_name = "status" ];
404+
int64 limbo_balance = 3 [ json_name = "limbo_balance" ];
405+
uint32 maturity_height = 4 [ json_name = "maturity_height" ];
406+
uint32 blocks_til_maturity = 5 [ json_name = "blocks_til_maturity" ];
390407
}
391408

392-
repeated PendingChannel pending_channels = 1 [ json_name = "pending_channels" ];
409+
int64 total_limbo_balance = 1 [ json_name = "total_limbo_balance" ];
410+
repeated PendingOpenChannel pending_open_channels = 2 [ json_name = "pending_open_channels" ];
411+
repeated ClosedChannel pending_closing_channels = 3 [ json_name = "pending_closing_channels" ];
412+
repeated ForceClosedChannel pending_force_closing_channels = 4 [ json_name = "pending_force_closing_channels" ];
393413
}
394414

395415
message WalletBalanceRequest {

0 commit comments

Comments
 (0)