Skip to content

Instantly share code, notes, and snippets.

View mrfelton's full-sized avatar

Tom Kirkpatrick mrfelton

View GitHub Profile
diff -Naur proto/0.9.0-beta/autopilotrpc/autopilot.proto proto/0.10.0-beta/autopilotrpc/autopilot.proto
--- proto/0.9.0-beta/autopilotrpc/autopilot.proto 2020-04-13 00:01:23.000000000 +0200
+++ proto/0.10.0-beta/autopilotrpc/autopilot.proto 2020-04-19 10:30:30.000000000 +0200
@@ -11,68 +11,70 @@
/**
Status returns whether the daemon's autopilot agent is active.
*/
- rpc Status(StatusRequest) returns (StatusResponse);
+ rpc Status (StatusRequest) returns (StatusResponse);
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* TOR=true npx babel-tape-runner test/servives.Lightning.test.js | npx tap-spec
Lightning.invoices
lnrpc:grpc Initializing LndGrpc with config: { host: 'zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +5ms
lnrpc:tor Starting tor with settings: { DataDirectory: '/var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-gsRkjS/data', HTTPTunnelPort: '127.0.0.1:9065', SocksPort: 0, 'Log info': 'stdout' } +0ms
lnrpc:tor Generated torrc at /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-gsRkjS/torrc:
lnrpc:tor DataDirectory /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-gsRkjS/data
HTTPTunnelPort 127.0.0.1:9065
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* TOR=true npx babel-tape-runner test/servives.Lightning.test.js | npx tap-spec
D0416 19:11:23.920045000 4503690688 dns_resolver.cc:294] Using native dns resolver
I0416 19:11:23.920449000 4503690688 timer_manager.cc:88] Spawn timer thread
I0416 19:11:23.920467000 4503690688 init.cc:164] grpc_init(void)
I0416 19:11:23.920530000 123145470877696 timer_manager.cc:250] timers not checked: expect another thread to
I0416 19:11:23.920538000 123145470877696 timer_manager.cc:197] sleep until kicked
I0416 19:11:23.920796000 4503690688 completion_queue.cc:504] grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
Lightning.invoices
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* npx babel-tape-runner test/grpc.test.js | npx tap-spec
connect (paths)
lnrpc:grpc Initializing LndGrpc with config: { host: 'testnet4-lnd.zaphq.io:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +8ms
lnrpc:grpc Attempting to determine wallet state +75ms
lnrpc:service:WalletUnlocker Connecting to WalletUnlocker gRPC service +0ms
lnrpc:service:WalletUnlocker Establishing gRPC connection to WalletUnlocker with proto file /Users/tom/workspace/node-lnd-grpc/proto/0.9.0-beta/lnrpc/rpc.proto +2ms
2020-04-16T17:01:10.057Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 IDLE -> IDLE
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* TOR=true npx babel-tape-runner test/grpc.test.js | npx tap-spec
connect (paths)
lnrpc:grpc Initializing LndGrpc with config: { host: 'zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +7ms
lnrpc:tor Starting tor with settings: { DataDirectory: '/var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-RmHJwF/data', HTTPTunnelPort: '127.0.0.1:9065', SocksPort: 0, 'Log info': 'stdout' } +0ms
lnrpc:tor Generated torrc at /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-RmHJwF/torrc:
lnrpc:tor DataDirectory /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-RmHJwF/data
HTTPTunnelPort 127.0.0.1:9065
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* TOR=true npx babel-tape-runner test/grpc.test.js | npx tap-spec
connect (paths)
lnrpc:grpc Initializing LndGrpc with config: { host: 'zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +7ms
lnrpc:tor Starting tor with settings: { DataDirectory: '/var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/data', HTTPTunnelPort: '127.0.0.1:9065', SocksPort: 0 } +0ms
lnrpc:tor Generated torrc at /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/torrc:
lnrpc:tor DataDirectory /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/data
HTTPTunnelPort 127.0.0.1:9065
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* TOR=true npx babel-tape-runner test/grpc.test.js | npx tap-spec
connect (paths)
lnrpc:grpc Initializing LndGrpc with config: { host: 'zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +7ms
lnrpc:tor Starting tor with settings: { DataDirectory: '/var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/data', HTTPTunnelPort: '127.0.0.1:9065', SocksPort: 0 } +0ms
lnrpc:tor Generated torrc at /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/torrc:
lnrpc:tor DataDirectory /var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/data
HTTPTunnelPort 127.0.0.1:9065
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* npx babel-tape-runner test/grpc.test.js | npx tap-spec
D0413 18:50:30.484512000 4451655104 dns_resolver.cc:294] Using native dns resolver
I0413 18:50:30.484734000 4451655104 timer_manager.cc:88] Spawn timer thread
I0413 18:50:30.484755000 4451655104 init.cc:164] grpc_init(void)
I0413 18:50:30.484771000 123145564200960 timer_manager.cc:250] timers not checked: expect another thread to
I0413 18:50:30.484779000 123145564200960 timer_manager.cc:197] sleep until kicked
I0413 18:50:30.485014000 4451655104 completion_queue.cc:504] grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
connect (paths)
@mrfelton
mrfelton / lnd-0.8-0.9.diff
Last active February 4, 2020 13:06
lnd grpc 0.8 - 0.9 diff
diff -Naur proto/0.8.0-beta/invoicesrpc/invoices.proto proto/0.9.0-beta/invoicesrpc/invoices.proto
--- proto/0.8.0-beta/invoicesrpc/invoices.proto 2019-10-18 09:43:05.000000000 +0200
+++ proto/0.9.0-beta/invoicesrpc/invoices.proto 2020-02-04 11:22:37.000000000 +0100
@@ -55,10 +55,21 @@
/// The hash of the preimage
bytes hash = 2 [json_name = "hash"];
- /// The value of this invoice in satoshis
+ /**
+ The value of this invoice in satoshis

Keybase proof

I hereby claim:

  • I am mrfelton on github.
  • I am mrfelton (https://keybase.io/mrfelton) on keybase.
  • I have a public key whose fingerprint is 2D1C 54C7 742C 21BD 47E6 C51C 7220 3A8E C596 7EA8

To claim this, I am signing this object: