Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
lnd-grpc tor v2
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
SocksPort 0
+1ms
lnrpc:tor Setting grpc_proxy as: http://127.0.0.1:9065 +0ms
lnrpc:tor Started tor process with pid: 58322 +4ms
lnrpc:torproc Apr 15 16:35:58.729 [notice] Tor 0.4.2.5 running on Darwin with Libevent 2.1.11-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
lnrpc:torproc Apr 15 16:35:58.729 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning +0ms
lnrpc:torproc Apr 15 16:35:58.730 [notice] Read configuration file "/var/folders/1b/496ss_hn7dx7wntf1w8qn6200000gn/T/lnd-grpc-rWXKVa/torrc". +0ms
lnrpc:torproc Apr 15 16:35:58.731 [notice] Opening HTTP tunnel listener on 127.0.0.1:9065 +1ms
lnrpc:torproc Apr 15 16:35:58.731 [notice] Opened HTTP tunnel listener on 127.0.0.1:9065 +0ms
lnrpc:torproc Apr 15 16:35:58.000 [notice] Parsing GEOIP IPv4 file /usr/local/Cellar/tor/0.4.2.5/share/tor/geoip. +1ms
lnrpc:torproc Apr 15 16:35:58.000 [notice] Parsing GEOIP IPv6 file /usr/local/Cellar/tor/0.4.2.5/share/tor/geoip6. +109ms
lnrpc:torproc Apr 15 16:35:58.000 [notice] Bootstrapped 0% (starting): Starting +57ms
lnrpc:torproc Apr 15 16:35:58.000 [notice] Starting with guard context "default" +0ms
lnrpc:torproc Apr 15 16:35:59.000 [notice] Bootstrapped 5% (conn): Connecting to a relay +1s
lnrpc:torproc Apr 15 16:35:59.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay +59ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay +129ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 20% (onehop_create): Establishing an encrypted directory connection +62ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 25% (requesting_status): Asking for networkstatus consensus +65ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 30% (loading_status): Loading networkstatus consensus +67ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus. +454ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 40% (loading_keys): Loading authority key certs +173ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services. +84ms
lnrpc:torproc Apr 15 16:36:00.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
lnrpc:torproc Apr 15 16:36:00.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/6887, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.) +1ms
lnrpc:torproc Apr 15 16:36:01.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors +214ms
lnrpc:torproc Apr 15 16:36:01.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths. +530ms
lnrpc:torproc Apr 15 16:36:01.000 [notice] Bootstrapped 55% (loading_descriptors): Loading relay descriptors +238ms
lnrpc:torproc Apr 15 16:36:04.000 [notice] Bootstrapped 60% (loading_descriptors): Loading relay descriptors +2s
lnrpc:torproc Apr 15 16:36:04.000 [notice] Bootstrapped 65% (loading_descriptors): Loading relay descriptors +69ms
lnrpc:torproc Apr 15 16:36:04.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits +537ms
lnrpc:torproc Apr 15 16:36:04.000 [notice] Bootstrapped 80% (ap_conn): Connecting to a relay to build circuits +324ms
lnrpc:torproc Apr 15 16:36:04.000 [notice] Bootstrapped 85% (ap_conn_done): Connected to a relay to build circuits +55ms
lnrpc:torproc Apr 15 16:36:05.000 [notice] Bootstrapped 89% (ap_handshake): Finishing handshake with a relay to build circuits +112ms
lnrpc:torproc Apr 15 16:36:05.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
lnrpc:torproc Apr 15 16:36:05.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit +54ms
lnrpc:torproc Apr 15 16:36:05.000 [notice] Bootstrapped 100% (done): Done +250ms
lnrpc:grpc Attempting to determine wallet state +8s
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 +4ms
2020-04-15T14:36:06.508Z | proxy | Proxy server 127.0.0.1:9065 set by environment variable grpc_proxy
2020-04-15T14:36:06.509Z | resolving_load_balancer | dns:127.0.0.1:9065 IDLE -> IDLE
2020-04-15T14:36:06.509Z | connectivity_state | dns:127.0.0.1:9065 IDLE -> IDLE
2020-04-15T14:36:06.509Z | dns_resolver | Resolver constructed for target dns:127.0.0.1:9065
2020-04-15T14:36:06.510Z | dns_resolver | Resolution update requested for target dns:127.0.0.1:9065
2020-04-15T14:36:06.510Z | resolving_load_balancer | dns:127.0.0.1:9065 IDLE -> CONNECTING
2020-04-15T14:36:06.510Z | connectivity_state | dns:127.0.0.1:9065 IDLE -> CONNECTING
2020-04-15T14:36:06.511Z | resolving_load_balancer | dns:127.0.0.1:9065 CONNECTING -> CONNECTING
2020-04-15T14:36:06.511Z | connectivity_state | dns:127.0.0.1:9065 CONNECTING -> CONNECTING
2020-04-15T14:36:06.511Z | dns_resolver | Resolved addresses for target dns:127.0.0.1:9065: [127.0.0.1:9065]
2020-04-15T14:36:06.511Z | pick_first | IDLE -> IDLE
2020-04-15T14:36:06.511Z | resolving_load_balancer | dns:127.0.0.1:9065 CONNECTING -> IDLE
2020-04-15T14:36:06.511Z | connectivity_state | dns:127.0.0.1:9065 CONNECTING -> IDLE
2020-04-15T14:36:06.511Z | pick_first | Connect to address list 127.0.0.1:9065
2020-04-15T14:36:06.512Z | subchannel | 127.0.0.1:9065 refcount 0 -> 1
2020-04-15T14:36:06.512Z | subchannel | 127.0.0.1:9065 refcount 1 -> 2
2020-04-15T14:36:06.512Z | pick_first | Start connecting to subchannel with address 127.0.0.1:9065
2020-04-15T14:36:06.512Z | pick_first | IDLE -> CONNECTING
2020-04-15T14:36:06.512Z | resolving_load_balancer | dns:127.0.0.1:9065 IDLE -> CONNECTING
2020-04-15T14:36:06.512Z | connectivity_state | dns:127.0.0.1:9065 IDLE -> CONNECTING
2020-04-15T14:36:06.512Z | subchannel | 127.0.0.1:9065 IDLE -> CONNECTING
2020-04-15T14:36:06.513Z | proxy | Using proxy 127.0.0.1:9065 to connect to zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009
2020-04-15T14:36:06.514Z | pick_first | CONNECTING -> CONNECTING
2020-04-15T14:36:06.514Z | resolving_load_balancer | dns:127.0.0.1:9065 CONNECTING -> CONNECTING
2020-04-15T14:36:06.514Z | connectivity_state | dns:127.0.0.1:9065 CONNECTING -> CONNECTING
2020-04-15T14:36:10.163Z | proxy | Successfully connected to zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion:10009 through proxy 127.0.0.1:9065
2020-04-15T14:36:10.167Z | subchannel | 127.0.0.1:9065 CONNECTING -> READY
2020-04-15T14:36:10.167Z | pick_first | Pick subchannel with address 127.0.0.1:9065
2020-04-15T14:36:10.167Z | pick_first | CONNECTING -> READY
2020-04-15T14:36:10.167Z | resolving_load_balancer | dns:127.0.0.1:9065 CONNECTING -> READY
2020-04-15T14:36:10.168Z | connectivity_state | dns:127.0.0.1:9065 CONNECTING -> READY
2020-04-15T14:36:10.168Z | dns_resolver | Resolution update requested for target dns:127.0.0.1:9065
2020-04-15T14:36:10.168Z | dns_resolver | Resolution update requested for target dns:127.0.0.1:9065
2020-04-15T14:36:10.168Z | subchannel | 127.0.0.1:9065 refcount 2 -> 3
2020-04-15T14:36:10.168Z | subchannel | 127.0.0.1:9065 refcount 3 -> 2
2020-04-15T14:36:10.168Z | dns_resolver | Resolved addresses for target dns:127.0.0.1:9065: [127.0.0.1:9065]
2020-04-15T14:36:10.168Z | pick_first | Connect to address list 127.0.0.1:9065
2020-04-15T14:36:10.168Z | subchannel | 127.0.0.1:9065 refcount 2 -> 3
2020-04-15T14:36:10.168Z | pick_first | Pick subchannel with address 127.0.0.1:9065
2020-04-15T14:36:10.169Z | subchannel | 127.0.0.1:9065 refcount 3 -> 2
2020-04-15T14:36:10.169Z | pick_first | READY -> READY
2020-04-15T14:36:10.169Z | resolving_load_balancer | dns:127.0.0.1:9065 READY -> READY
2020-04-15T14:36:10.169Z | connectivity_state | dns:127.0.0.1:9065 READY -> READY
2020-04-15T14:36:10.169Z | subchannel | 127.0.0.1:9065 refcount 2 -> 3
2020-04-15T14:36:10.169Z | subchannel | 127.0.0.1:9065 refcount 3 -> 2
lnrpc:service:WalletUnlocker Connected to WalletUnlocker gRPC service +4s
lnrpc:service:WalletUnlocker Calling WalletUnlocker.unlockWallet with payload: { payload: {}, options: {} } +0ms
2020-04-15T14:36:10.170Z | channel | dns:127.0.0.1:9065 createCall [0] method="/lnrpc.WalletUnlocker/UnlockWallet", deadline=Infinity
2020-04-15T14:36:10.171Z | call_stream | [0] Sending metadata
2020-04-15T14:36:10.171Z | channel | Pick result: COMPLETE subchannel: 127.0.0.1:9065 status: undefined undefined
2020-04-15T14:36:10.172Z | call_stream | [0] write() called with message of length 0
2020-04-15T14:36:10.172Z | call_stream | [0] end() called
2020-04-15T14:36:10.174Z | subchannel | Starting stream with headers
grpc-accept-encoding: identity,deflate,gzip
accept-encoding: identity,gzip
:authority: zapn34qfeedw2l5y26p3hnnkusqnbhxcxw64lq5cojmvq45yw4bc3sqd.onion
user-agent: grpc-node-js/0.8.1
content-type: application/grpc
:method: POST
:path: /lnrpc.WalletUnlocker/UnlockWallet
te: trailers
2020-04-15T14:36:10.174Z | call_stream | [0] attachHttp2Stream from subchannel 127.0.0.1:9065
2020-04-15T14:36:10.174Z | subchannel | 127.0.0.1:9065 callRefcount 0 -> 1
2020-04-15T14:36:10.174Z | call_stream | [0] sending data chunk of length 5
2020-04-15T14:36:10.175Z | call_stream | [0] calling end() on HTTP/2 stream
2020-04-15T14:36:30.179Z | subchannel | 127.0.0.1:9065 READY -> IDLE
2020-04-15T14:36:30.180Z | subchannel | 127.0.0.1:9065 refcount 2 -> 1
2020-04-15T14:36:30.180Z | pick_first | READY -> IDLE
2020-04-15T14:36:30.180Z | resolving_load_balancer | dns:127.0.0.1:9065 READY -> IDLE
2020-04-15T14:36:30.180Z | connectivity_state | dns:127.0.0.1:9065 READY -> IDLE
2020-04-15T14:36:36.519Z | subchannel | 127.0.0.1:9065 refcount 1 -> 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment