Skip to content

Instantly share code, notes, and snippets.

View mrfelton's full-sized avatar

Tom Kirkpatrick mrfelton

View GitHub Profile
thedeathmachine:lnd tom$ make
Compiling dependencies.
dep ensure -v
# Gopkg.lock is out of sync with Gopkg.toml and project imports:
github.com/lightningnetwork/lnd/aezeed: imported or required, but missing from Gopkg.lock's input-imports
github.com/lightningnetwork/lnd/autopilot: imported or required, but missing from Gopkg.lock's input-imports
github.com/lightningnetwork/lnd/brontide: imported or required, but missing from Gopkg.lock's input-imports
github.com/lightningnetwork/lnd/chainntnfs: imported or required, but missing from Gopkg.lock's input-imports
github.com/lightningnetwork/lnd/chainntnfs/bitcoindnotify: imported or required, but missing from Gopkg.lock's input-imports
github.com/lightningnetwork/lnd/chainntnfs/btcdnotify: imported or required, but missing from Gopkg.lock's input-imports
@mrfelton
mrfelton / lnd.log
Created August 19, 2018 10:11
lnd sync logs (multiple hosts)
[INF] BTCN: Starting cfheaders sync at block_height=1384261, hash=000000000001e2d21cabb2927085ed4418db8fc63fa1d826cefab60c3c0fee5c
[INF] BTCN: Starting cfheaders sync for filter_type=0
[DBG] BTCN: Sending getcfcheckpt to 35.231.86.179:18333 (outbound)
[DBG] BTCN: Sending getcfcheckpt to 35.196.85.107:18333 (outbound)
[INF] LNWL: Done catching up block hashes
[INF] LNWL: Started rescan from block 000000000001e2d21cabb2927085ed4418db8fc63fa1d826cefab60c3c0fee5c (height 1384261) for 1 address
[DBG] BTCN: Received cfcheckpt from 35.196.85.107:18333 (outbound)
[DBG] BTCN: Received unhandled message of type cfcheckpt from 35.196.85.107:18333 (outbound)
[DBG] BTCN: Received cfcheckpt from 35.231.86.179:18333 (outbound)
[DBG] BTCN: Received unhandled message of type cfcheckpt from 35.231.86.179:18333 (outbound)
@mrfelton
mrfelton / unlock.sh
Last active July 30, 2019 07:29
Shell script to unlock lnd on system startup
#!/bin/bash
# Do nothing if the WALLET_PASSWORD var is not set.
if [ -z "$PASSWORD" ]; then
echo "[lnd_unlock] Please set PASSWORD in order to unlock wallet automatically."
s6-pause
fi
# output script content for easier debugging.
# set -x
# exit from script if error was raised.
set -e

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:

@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
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)
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* 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/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