--- Day changed Wed Mar 07 2018 00:00 -!- P [4f4658f3@gateway/web/freenode/ip.79.70.88.243] has joined #lnd 00:00 -!- P [4f4658f3@gateway/web/freenode/ip.79.70.88.243] has quit [Client Quit] 00:01 -!- Mark___ [5bd4cf04@gateway/web/freenode/ip.91.212.207.4] has joined #lnd 00:11 -!- sovjet [~sovjet@193.189.166.102] has joined #lnd 00:19 -!- Osso [~osso@2600:1700:37a0:1060:f133:3b00:19bf:92d7] has quit [Ping timeout: 256 seconds] 00:21 -!- pioklo [Pioklo@ip-91.246.70.194.skyware.pl] has quit [Ping timeout: 240 seconds] 00:45 -!- User__ [~User@133-203.dorm.ncu.edu.tw] has joined #lnd 00:49 -!- ken2812221 [~User@140.115.68.46] has quit [Ping timeout: 248 seconds] 00:50 -!- User__ [~User@133-203.dorm.ncu.edu.tw] has quit [Client Quit] 00:50 -!- ken2812221 [~User@133-203.dorm.ncu.edu.tw] has joined #lnd 00:51 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has quit [Ping timeout: 264 seconds] 00:52 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lnd 00:52 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Changing host] 00:52 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has joined #lnd 01:31 -!- mrfelton [5806074f@gateway/web/freenode/ip.88.6.7.79] has joined #lnd 01:35 < mrfelton> Hi. I'm trying to run through the tutorial to create a basic javascript client for lnd at https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/javascript.md but I'm having some issues with the tls authentication 01:35 < mrfelton> Same issue as described here https://github.com/lightninglabs/lightning-app/issues/20 01:36 < mrfelton> That issue is marked as closed, although the suggestion contained within it does not resolve the issue 01:36 < mrfelton> Is this a known issue? Is there are known workaround that does work? 01:38 < mrfelton> The suggested fix at https://github.com/mably/lncli-web#generate-lnd-certificates-compatible-with-nodejs-grpc also doesn't appear to work 02:00 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-hezvylpfliywzcrs] has quit [Quit: Connection closed for inactivity] 02:04 < Veggen> Bezpol has been playing with the javascript stuff I know. 02:12 < Bezpol> Yes. What is a problem ? 02:13 < Bezpol> Try this 02:13 < Bezpol> process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; process.env.GRPC_SSL_CIPHER_SUITES = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384" 02:14 < Bezpol> In nodejs 02:14 < Bezpol> works 02:18 < Bezpol> Give me information if work at your app 02:26 < mrfelton> Hey Bezpol - that does seem to fix the tls issue 02:26 < mrfelton> Although my call to lightning.getInfo returns an empty object, which isn't what I was expecting 02:29 < mrfelton> Ahh, so I'm getting a different error 02:30 < mrfelton> WalletBalance: Error: 14 UNAVAILABLE: Connect Failed 02:30 < mrfelton> (from the err object returned by lightning.getInfo) 02:31 < mrfelton> So I'm not sure if the tls issue was really resolved by your code, or wether the conection issue I'm seeing now is something else 02:38 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 02:40 -!- kunla [~kunla@bl10-85-39.dsl.telepac.pt] has joined #lnd 02:55 < Bezpol> Ok. You must setup macaroons credentials combine it with tls credentials - and before it create wallet and open. If you have any mail I send you sample code. 02:56 < Bezpol> To create wallet you must use only TLS without macaroons. 02:57 -!- mrfelton_ [~tom@79.red-88-6-7.staticip.rima-tde.net] has joined #lnd 02:58 < mrfelton> Cheers Bezpol - have PM'd you my email 02:58 < mrfelton> Appreciate the help 02:59 < mrfelton> I did try to start lnd with macaroons disabled, but I couldn't get it to start up with no-macaroons=true in the config file 03:00 < Bezpol> Lets look at this: 03:00 < Bezpol> let metadata = new grpc.Metadata(); let macaroonHex = fs.readFileSync("/home/administrator/.lnd/data/admin.macaroon").toString("hex"); metadata.add('macaroon', macaroonHex); let macaroonCreds = grpc.credentials.createFromMetadataGenerator((params, callback) => callback(null, metadata) ) let creds = grpc.cre 03:01 < Bezpol> credentials, macaroonCreds); lightning = new lnrpc.Lightning('127.0.0.1:11110', creds) 03:01 < Bezpol> It helps you. 03:01 < Bezpol> Put macaroons on ! 03:02 < Bezpol> And mix code above with api examples for javascript. It must work ! 03:06 < mrfelton> TypeError: grpc.credentials.crecreateFromMetadataGenerator is not a function 03:07 < mrfelton> ahh, was just a typo in your paste 03:08 < mrfelton> Still no joy 03:08 < mrfelton> This is what I have https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 03:08 < mrfelton> results in getInfo: Error: 14 UNAVAILABLE: Connect Failed 03:09 < mrfelton> ./admin.macaroon is the file that I copied over from the lnd server 03:09 < mrfelton> as is lnd.cert (renamed from tls.cert) 03:16 -!- nirved [~nirved@2a02:8071:b58a:3c00:9934:c572:cbb8:a39b] has quit [Ping timeout: 256 seconds] 03:18 -!- kunla [~kunla@bl10-85-39.dsl.telepac.pt] has quit [Ping timeout: 264 seconds] 03:27 -!- kunla [~kunla@83.223.241.247] has joined #lnd 03:28 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 03:28 -!- nirved [~nirved@2a02:8071:b58a:3c00:1d4a:1844:9ce2:e57d] has joined #lnd 03:28 -!- Costy [79db1e85@gateway/web/freenode/ip.121.219.30.133] has joined #lnd 03:32 -!- Costy [79db1e85@gateway/web/freenode/ip.121.219.30.133] has quit [Client Quit] 03:35 < Bezpol> let macaroonCreds = grpc.credentials.createFromMetadataGenerator((params, callback) => callback(null, metadata) ) 03:35 < Bezpol> this way 03:36 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has quit [Remote host closed the connection] 03:37 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 03:41 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has quit [Remote host closed the connection] 03:41 < mrfelton> Bezpol: how is that different from what I have? 03:41 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 03:42 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has quit [Remote host closed the connection] 03:42 < mrfelton> I am creating macaroonCreds as you describe and passing through to new lnrpc.Lightning 03:42 < Bezpol> Wait a moment I must look at your code. 03:42 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 03:43 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has joined #lnd 03:44 < Bezpol> where is let creds = grpc.credentials.combineChannelCredentials(credentials, macaroonCreds); 03:44 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has quit [Remote host closed the connection] 03:45 < mrfelton> I didn't know that was needed. I think your original paste may have got cut short 03:45 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 03:46 < mrfelton> like this: https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 ? 03:46 < mrfelton> (still doesn't work) 03:49 < mlz> mrfelton, are you having trouble with tls? 03:49 < Bezpol> I add all my code at https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 like Metal 03:50 < mrfelton> mlz: yep, although Bezpol provided some code to help with that 03:50 < Bezpol> Look all my code in comments at https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 ( Metal ...) 03:51 < mlz> mrfelton, there was an upgrade from RSA to ECDSA, you have to delete the old tls pair, restart lnd and it creates a new tls pair for you 03:51 < Bezpol> Check if you open wallet for lnd and if lnd have correct connection with btcd and btcd is full sync with testnet 03:52 < mrfelton> Bezpol: lnd is functioning correctly 03:52 < Bezpol> that's look at mlz suggestion 03:52 < mrfelton> mlz: yep - I tried that, but still got the tls issue. The only thing that gets me passed it is by setting the env vars that Bezpol mentioned 03:52 < mlz> ah ok 03:53 < mrfelton> Bezpol: your code fails in the same way as mine 03:53 < mrfelton> Error: 14 UNAVAILABLE: Connect Failed 03:53 -!- mrfelton [5806074f@gateway/web/freenode/ip.88.6.7.79] has quit [Quit: Page closed] 03:53 -!- mrfelton_ is now known as mrfelton 03:53 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has left #lnd [] 03:53 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has joined #lnd 03:55 < Bezpol> test telnet localhost port - can you open port ? 03:56 < mrfelton> yes, ports are open and can connect with telnet 03:56 < mrfelton> I’ve tried running the same code on the lnd server directly too 03:57 < mrfelton> (I’m mainly testing from from mac, connecting to an lnd server running on a linux box) 03:58 < mlz> mrfelton, maybe this code can help? https://hastebin.com/raw/umirinogey 04:00 < mrfelton> Thats basically the same as what I’m running, which gives Error: 14 UNAVAILABLE: Connect Failed 04:00 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has quit [Ping timeout: 260 seconds] 04:00 < mrfelton> \I tested with that snippet mlz - same issue 04:00 < mrfelton> wether run locally or remotely 04:02 < mrfelton> Irt says this when I start up lnd and unlock the wallet 04:02 < mrfelton> 2018-03-07 13:02:06.183 [INF] RPCS: RPC server listening on [::]:10009 04:02 < mrfelton> 2018-03-07 13:02:06.184 [INF] RPCS: gRPC proxy started at [::]:8080 04:02 < mrfelton> and can telnet to both ports 04:04 -!- ken2812221 [~User@133-203.dorm.ncu.edu.tw] has quit [Ping timeout: 260 seconds] 04:05 -!- ken2812221 [~User@133-203.dorm.ncu.edu.tw] has joined #lnd 04:05 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has quit [Remote host closed the connection] 04:06 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has joined #lnd 04:09 < mrfelton> mlz: based on what you said earlier, you think the instructions here are now obsolete or incorrect? https://github.com/mably/lncli-web#generate-lnd-certificates-compatible-with-nodejs-grpc 04:10 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 04:11 < mlz> mrfelton, oh is this for the web-client written by mably? 04:11 < mlz> idk, ping mably 04:12 < mrfelton> no. Well, I initially started trying to get that working but couldn’t. So now I’m trying to get something very simple working fiollowing the instructions at https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/javascript.md - which also doesn’t work 04:16 -!- Bezpol [5bf6447a@gateway/web/freenode/session] has joined #lnd 04:18 -!- Bezpol [5bf6447a@gateway/web/freenode/session] has quit [Changing host] 04:18 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has joined #lnd 04:18 -!- kim0 [uid105149@ubuntu/member/kim0] has joined #lnd 04:20 -!- someone235 [~someone23@unaffiliated/someone235] has quit [Ping timeout: 260 seconds] 04:20 -!- melvster [~melvin@ip-86-49-18-198.net.upcbroadband.cz] has quit [Ping timeout: 260 seconds] 04:20 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has quit [Client Quit] 04:21 -!- melvster [~melvin@ip-86-49-18-198.net.upcbroadband.cz] has joined #lnd 04:24 < mlz> mrfelton, are you running this with btcd as the backend? 04:24 < mrfelton> mlz: no - bitcoin core 04:25 < mlz> ah ok, i'm thinking just to make sure to have everything updated 04:25 < mrfelton> my bitcoin/lightning node is set up pretty much as per https://medium.com/@stadicus/perfect-low-cost-%EF%B8%8Flightning%EF%B8%8F-node-4c2f42a4ff7b 04:25 < mlz> oh i don't know that guide 04:25 < mrfelton> everything is running latest versions 04:26 < mlz> we follow the updates from roasbeef's merged PRs and announcements 04:26 < mrfelton> the lnd server itself seems to be functioning. I have been able to open channels and make payments via the command line 04:30 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has joined #lnd 04:31 < mlz> i've skimmed thru that guide before, seems well written but i haven't used the guide 04:31 -!- belcher [~belcher@unaffiliated/belcher] has joined #lnd 04:33 < mrfelton> yes, I fouind it to be a pretty decent guide. I have read several and this is the best I’ve seen so far 04:34 < mrfelton> It isn’t doing anyhting out of the ordinally 04:34 < mrfelton> Do you think me using bitcoind is an issue? 04:34 < mlz> i don't think so 04:34 < mrfelton> I assumed lightning should work best with thaqt 04:35 < mrfelton> But as I said,m my node is up and running, It’s connected. Can make payments. Is visible on the testnet explorer 04:35 < mlz> the reasond i asked about btcd because btcd had an update couple weeks ago 04:35 < mrfelton> All seems good - other than the fact I cant seem to get a grcp connection going from javascript 04:36 < mlz> mrfelton, right, so must be something from the javascript code? 04:36 < mrfelton> You would think, but I have paied it back to the most basic of basic code 04:36 < mrfelton> As per the example you pasted 04:37 < mrfelton> First issue is that tls complains 04:37 < mrfelton> I can get passed that by adding 04:37 < mrfelton> process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; 04:37 < mrfelton> process.env.GRPC_SSL_CIPHER_SUITES = 04:37 < mrfelton> "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384"; 04:37 < mrfelton> Another issue is that https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/javascript.md makes no mention of macaroons 04:37 < skace> simlay: thanks 04:38 < mrfelton> but even after adding the code to support the macroons from js, still no joy 04:38 < mrfelton> It’s a pretty basic script 04:38 < mrfelton> https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 04:39 < mrfelton> Error: { Error: 14 UNAVAILABLE: Connect Failed 04:39 < mrfelton> at new createStatusError (/Users/tom/workspace/lightning-rest/node_modules/grpc/src/client.js:64:15) 04:39 < mrfelton> at /Users/tom/workspace/lightning-rest/node_modules/grpc/src/client.js:583:15 04:39 < mrfelton> code: 14, 04:39 < mrfelton> metadata: Metadata { _internal_repr: {} }, 04:39 < mrfelton> details: 'Connect Failed' } 04:40 -!- CubicEarths [~cubiceart@c-73-181-185-197.hsd1.wa.comcast.net] has quit [Remote host closed the connection] 04:43 < mrfelton> The version you pasted doesn’t work either - https://hastebin.com/raw/umirinogey - the only difference is that in that one, they don’t call grpc.credentials.combineChannelCredentials 04:44 < Bezpol> This code works on my machine ... interesting. Try create new dir for lnd. take tls and admin.macaroons from correct dir and then try again. 04:45 < mrfelton> create a new dir for lnd? 04:45 < Bezpol> Are you run javascript on the same machine that lnd ? Or copy tls and admin.macaroons from other ? 04:46 < mrfelton> I’m trying borth - locally on the lnd server, and remotely from my laptop 04:46 < mrfelton> neither works 04:46 < Bezpol> Yes. Is simple use --datadir= 04:47 < Bezpol> then use lncli with the same --datadir - to create wallet 04:48 < Bezpol> then in dir you have new admin.macaroons 04:48 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-jijfcjlzgowmnuhf] has joined #lnd 04:49 < Bezpol> When you don't use --tlscertpath lnd will use tls from ~/.lnd to create grpc server 04:50 < Bezpol> If you use correct tls and macaroons the code which I sent you must work. 04:51 < Bezpol> I will make today update lnd, maybe boys change something in lnd but my copy has three day so I don't think that something changed too much 04:52 < mlz> Bezpol, roasbeef merged 3 important PRs yesterday 04:52 < Bezpol> I don't like him :)))) 04:52 < mlz> haha 04:53 < Bezpol> Ok. Must make update. Wait a moment. 04:57 < mlz> these PRs: https://github.com/lightningnetwork/lnd/pull/719 - https://github.com/lightningnetwork/lnd/pull/769 - https://github.com/lightningnetwork/lnd/pull/787 04:58 < mlz> getting closer to the beta release :D 05:06 -!- pioklo [Pioklo@ip-91.246.70.194.skyware.pl] has joined #lnd 05:11 -!- Pioklo_ [Pioklo@ip-91.246.70.194.skyware.pl] has joined #lnd 05:11 -!- pioklo [Pioklo@ip-91.246.70.194.skyware.pl] has quit [Read error: Connection reset by peer] 05:19 -!- naribia [adefec23@gateway/web/freenode/ip.173.239.236.35] has quit [Quit: Page closed] 05:31 -!- Pioklo_ [Pioklo@ip-91.246.70.194.skyware.pl] has quit [Read error: Connection reset by peer] 05:34 < mrfelton> mlz / Bezpol - I have this working now 05:34 < mrfelton> update lnd from latest git 05:34 < mrfelton> removed ~/.lnd completley 05:34 < mrfelton> restarted lnd and setup new wallet 05:34 < mrfelton> and now the js works 05:34 < Bezpol> do you use my code ? 05:34 < mrfelton> yes 05:34 < Bezpol> Thank you. 05:35 -!- Mark___ [5bd4cf04@gateway/web/freenode/ip.91.212.207.4] has quit [Ping timeout: 260 seconds] 05:35 < mrfelton> this is the final code I’m using 05:35 < mrfelton> https://gist.github.com/mrfelton/425337282a3b2734630be4d4ae03fa28 05:35 < mrfelton> you might want to add a note to https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/javascript.md about setting process.env.GRPC_SSL_CIPHER_SUITES 05:36 -!- Mark__ [5bd4cf04@gateway/web/freenode/ip.91.212.207.4] has joined #lnd 05:37 < mrfelton> Also about needing to call combineChannelCredentials 05:39 < Bezpol> I do it. Now I updating. 05:39 < mrfelton> +1 05:52 -!- sovjet [~sovjet@193.189.166.102] has quit [Ping timeout: 255 seconds] 06:00 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has joined #lnd 06:04 < mrfelton> actually Bezpol, I don’t think the call to combineChannelCredentials is needed 06:07 < mrfelton> well, it seems that it is not needed when the js is running on the localhost 06:07 < mrfelton> but it is when it’s running remotely 06:09 < akihabara> anyone who wants to open a channel with my updated lnd node : 02de951d39501e643b1642a6d7095db29849490b29e1e58cb7fc387070d5c365e0@88.99.169.74:9735 06:18 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has quit [Ping timeout: 260 seconds] 06:30 -!- frib [~dynorsau@2601:585:8200:f585:24e7:794e:952b:f97c] has quit [Remote host closed the connection] 06:35 < mrfelton> Anyone know whats up with https://faucet.lightning.community/ ? 06:35 < mrfelton> (just says “unable to open chnnel” when I submit) 06:45 -!- IllusiveMan [uid279126@gateway/web/irccloud.com/x-txjeppeaycbyqmws] has joined #lnd 06:45 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has quit [Remote host closed the connection] 06:52 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has joined #lnd 06:53 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has quit [Ping timeout: 256 seconds] 07:08 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has joined #lnd 07:14 -!- q-biq [q-biq@unaffiiliated/q-biq] has quit [Remote host closed the connection] 07:21 -!- q-biq [q-biq@153.92.126.244] has joined #lnd 07:21 -!- q-biq [q-biq@153.92.126.244] has quit [Changing host] 07:21 -!- q-biq [q-biq@unaffiiliated/q-biq] has joined #lnd 07:40 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has quit [Quit: Page closed] 07:41 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has joined #lnd 07:44 -!- Osso [~osso@2600:1700:37a0:1060:f133:3b00:19bf:92d7] has joined #lnd 07:46 -!- grafcaps_ [~haroldbr@50.90.83.229] has quit [Ping timeout: 240 seconds] 07:49 < mlz> mrfelton, did you do "lncli connect... " to it first? 07:49 < mrfelton> I did 07:50 < mlz> and your node is reachable? 07:54 < Bezpol> repeat uri to your node please 07:58 < Bezpol> rescan lnd take a while !!! 07:58 < Bezpol> I made update everything works. A few new function in rpc. Nice. 08:05 -!- Osso [~osso@2600:1700:37a0:1060:f133:3b00:19bf:92d7] has quit [Ping timeout: 255 seconds] 08:05 -!- Osso [~osso@162-225-190-212.lightspeed.livnmi.sbcglobal.net] has joined #lnd 08:07 -!- grafcaps [~haroldbr@104.137.194.255] has joined #lnd 08:30 -!- dougsland [douglas@nat/redhat/x-uuaqdpdnmakvygeg] has joined #lnd 08:56 -!- kunla [~kunla@83.223.241.247] has quit [Ping timeout: 256 seconds] 09:08 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has joined #lnd 09:09 -!- iv4n [~iv4n@1.47.161.147] has quit [Ping timeout: 265 seconds] 09:11 -!- espes__ [~espes@205.185.120.132] has joined #lnd 09:12 -!- dougsland [douglas@nat/redhat/x-uuaqdpdnmakvygeg] has quit [Changing host] 09:12 -!- dougsland [douglas@tchelinux/moderator/dougsland] has joined #lnd 09:14 <@roasbeef> there is no 0.4 beta lol 09:19 < naribia> how does milisats work? i thought commitments were actual transactions and how can you update with sub-sat denominations if its not enforceable on the chain? 09:20 <@roasbeef> (plz refrain from posting large code snippets, use paste bins instead) 09:20 <@roasbeef> naribia: you round down, it's just for accounting purposes 09:21 -!- iv4n [~iv4n@1.46.104.20] has joined #lnd 09:21 <@roasbeef> lets you be super granular if your app needs it 09:22 < naribia> seems like what your saying is that you just ignore them lol 09:22 < naribia> well i think i understand, its all just what is agreed on by the parties 09:24 < mlz> naribia, msat is used in fees, for lnd: fund amounts are in sat, not msat, but fees are in msat, for c-lightning they both are in msat 09:25 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has joined #lnd 09:26 -!- Giszmo [~leo@pc-37-38-86-200.cm.vtr.net] has joined #lnd 09:28 < naribia> i see 09:31 < mlz> there's been confusion about msat with people who use c-lightning.. imagine if bit and finney are used for LN, forget ln then 09:34 <@roasbeef> yeh we made a decision to not expose it on the rpc api 09:34 <@roasbeef> or on the command lien for the most part 09:34 <@roasbeef> tho there's one or two areas 09:34 <@roasbeef> as it just kinda confuses ppl and only needs to be dealt with under the covers 09:44 < Bezpol> nice 09:44 < Veggen> roasbeef: looking forward to beta soon! Grateful for the good work! Wish I could help more :) 09:45 < Bezpol> new rpc create wallet under javascript works perfect - nice work. 09:45 < Veggen> (I'm not really coding much these days, so I'm happy for the opportunity :) 09:46 < Veggen> you based in SF, btw? 09:52 -!- blyat [~blyat@cpe-71-71-200-3.carolina.res.rr.com] has joined #lnd 09:52 -!- blyat [~blyat@cpe-71-71-200-3.carolina.res.rr.com] has quit [Remote host closed the connection] 10:03 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has quit [Quit: mrfelton] 10:16 -!- sovjet [~sovjet@user182.c2.sevnica.kabelnet.net] has joined #lnd 10:28 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has joined #lnd 10:29 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has quit [Client Quit] 10:29 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has quit [Ping timeout: 260 seconds] 10:30 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has joined #lnd 10:36 -!- rafalcpp [~racalcppp@84-10-11-234.static.chello.pl] has quit [Ping timeout: 256 seconds] 10:37 -!- rafalcpp [~racalcppp@84-10-11-234.static.chello.pl] has joined #lnd 10:57 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has quit [Ping timeout: 260 seconds] 11:02 -!- pioklo [Pioklo@ip-91.246.70.194.skyware.pl] has joined #lnd 11:05 < huy12> I am trying to use the subscribeInvoices grpc call in Java and it is not working (non streaming calls like listInvoices do work though). Does anyone have any thoughts on this? I subscribe and then add invoices through lncli and nothing shows up 11:05 -!- CubicEarths [~cubiceart@c-73-181-185-197.hsd1.wa.comcast.net] has joined #lnd 11:08 -!- iv4n [~iv4n@1.46.104.20] has quit [Ping timeout: 260 seconds] 11:11 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has joined #lnd 11:12 <@roasbeef> huy12: it only triggers when invoices are settled atm 11:12 <@roasbeef> it did do add, but then I reverted it for some reason... 11:12 <@roasbeef> https://github.com/lightningnetwork/lnd/blob/master/invoiceregistry.go#L94 11:18 < huy12> cool thanks for that information 11:20 -!- kunla [~kunla@81.193.53.189] has joined #lnd 11:21 <@roasbeef> np 11:22 <@roasbeef> huy12: what's your use case? we _could_ add the addition as well 11:27 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has joined #lnd 11:37 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has quit [Ping timeout: 240 seconds] 11:39 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has joined #lnd 11:44 < naribia> my forced close channels are actually closing but suuuper slowly 11:44 < naribia> 19 now 11:45 < naribia> i gave the force close a time limit of 10 (m guessing that was in blocks?) so im not totally sure how they are closing so slow, but im not familiar enough yet with the spec 11:49 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has quit [Ping timeout: 260 seconds] 12:05 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has quit [Remote host closed the connection] 12:06 -!- ChunkyPuffs [~ChunkyPuf@gateway/tor-sasl/chunkypuffs] has joined #lnd 12:13 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has joined #lnd 12:17 -!- kunla [~kunla@81.193.53.189] has quit [Ping timeout: 260 seconds] 12:20 -!- kunla [~kunla@bl13-153-142.dsl.telepac.pt] has joined #lnd 12:23 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has quit [Remote host closed the connection] 12:24 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has joined #lnd 12:36 -!- spudowiar [~spudowiar@unaffiliated/saleemrashid] has joined #lnd 12:40 <@roasbeef> closing slow? 12:40 <@roasbeef> they'll take several days to fully sweep possibly 12:42 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has joined #lnd 12:47 -!- kunla [~kunla@bl13-153-142.dsl.telepac.pt] has quit [Ping timeout: 245 seconds] 12:51 -!- kunla [~kunla@81.193.53.189] has joined #lnd 12:51 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has quit [Ping timeout: 260 seconds] 12:57 -!- offerm [546f8b93@gateway/web/freenode/ip.84.111.139.147] has joined #lnd 12:58 < offerm> hi, can't access lnd from lncli. getting transport: authentication handshake failed: remote error: tls: handshake failure 12:59 < offerm> any idea? 13:01 <@roasbeef> offerm: we use new certs 13:01 <@roasbeef> delete your old ones and try again 13:08 -!- spudowiar [~spudowiar@unaffiliated/saleemrashid] has quit [Quit: WeeChat 2.0.1] 13:09 -!- kunla [~kunla@81.193.53.189] has quit [Ping timeout: 260 seconds] 13:09 < offerm> roasbeed: thank you! 13:11 -!- kunla [~kunla@81.193.53.189] has joined #lnd 13:20 -!- offerm [546f8b93@gateway/web/freenode/ip.84.111.139.147] has quit [Quit: Page closed] 13:22 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has joined #lnd 13:34 -!- larafale [~larafale@ax213-1-82-66-157-194.fbx.proxad.net] has quit [Remote host closed the connection] 13:47 -!- dionysus69 [~Thunderbi@unaffiliated/dionysus69] has quit [Remote host closed the connection] 13:49 -!- Bezpol [1f002fa9@gateway/web/freenode/ip.31.0.47.169] has quit [Ping timeout: 260 seconds] 13:58 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has quit [Quit: mrfelton] 14:09 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has joined #lnd 14:22 < lndbot> anyone else not have macaroons being generated at startup on the latest commit? 14:34 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has quit [Quit: mrfelton] 14:41 -!- dougsland [douglas@tchelinux/moderator/dougsland] has quit [Ping timeout: 240 seconds] 14:53 -!- pioklo [Pioklo@ip-91.246.70.194.skyware.pl] has quit [Ping timeout: 256 seconds] 14:55 -!- sovjet [~sovjet@user182.c2.sevnica.kabelnet.net] has quit [Quit: Leaving] 15:13 -!- naribia [adefe878@gateway/web/freenode/ip.173.239.232.120] has quit [Ping timeout: 260 seconds] 15:19 < mlz> justin, all my nodes got macaroons generated 15:20 < lndbot> hmmm 15:20 < mlz> i started them fresh 15:24 < mlz> justin, https://i.imgur.com/s5VsKaO.png 15:54 -!- melvster [~melvin@ip-86-49-18-198.net.upcbroadband.cz] has quit [Ping timeout: 260 seconds] 16:08 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-jijfcjlzgowmnuhf] has quit [Quit: Connection closed for inactivity] 16:09 -!- kunla [~kunla@81.193.53.189] has quit [Ping timeout: 256 seconds] 16:20 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has quit [Remote host closed the connection] 16:21 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has joined #lnd 16:38 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has joined #lnd 16:57 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has joined #lnd 17:26 -!- JackH [~laptop@host-80-47-80-55.as13285.net] has quit [Ping timeout: 240 seconds] 17:33 -!- JackH [~laptop@host-80-47-80-55.as13285.net] has joined #lnd 17:41 -!- grafcaps [~haroldbr@104.137.194.255] has quit [Ping timeout: 256 seconds] 17:48 -!- Xantanium [~Xantanium@ip-149-248-188-30.fibre.fibrestream.ca] has quit [Ping timeout: 240 seconds] 17:55 -!- grafcaps [~haroldbr@50.90.83.229] has joined #lnd 17:56 -!- aparnakr [62f8fa82@gateway/web/freenode/ip.98.248.250.130] has joined #lnd 17:57 -!- someone__ [5b5cc765@gateway/web/freenode/ip.91.92.199.101] has joined #lnd 17:58 < someone__> hi, when running the command "lncli newaddress np2wkh" or "lncli walletbalance" it seems to be stuck (never completes) 17:59 < someone__> i should be using the latest code 17:59 < mlz> someone__, are you using bitcoind as the backend? 17:59 < someone__> yes 18:00 < mlz> does your bitcoin has ZMQ built in? and you have the bitcoin.conf set up correctly? 18:01 < someone__> not sure about ZMQ... i can see this in my config: 18:02 < someone__> zmqpubrawblock=tcp://127.0.0.1:29000 zmqpubrawtx=tcp://127.0.0.1:29000 18:02 < someone__> using the same config as described in "https://medium.com/@stadicus/perfect-low-cost-%EF%B8%8Flightning%EF%B8%8F-node-4c2f42a4ff7b" 18:03 < mlz> does it mention you need to make sure your bitcoind has ZMQ? 18:05 -!- aparnakr [62f8fa82@gateway/web/freenode/ip.98.248.250.130] has quit [Ping timeout: 260 seconds] 18:05 < someone__> it doesnt 18:08 -!- belcher [~belcher@unaffiliated/belcher] has quit [Quit: Leaving] 18:12 < skace> ok, so i closed my channels 18:12 < skace> how to i upgrade this wallet and keep the balance 18:15 < mlz> skace, you can try by removing the channel.db 18:15 < mlz> someone__, did you build your bitcoind? 18:16 < someone__> no, just downloaded bitcoin-0.16.0-x86_64-linux-gnu.tar.gz and installed it 18:17 < mlz> hm.. im guessing it has ZMQ but i don't know 18:17 < skace> mlz: i mean, when i upgrade lnd i get v4->v5 fail 18:17 < skace> so i have to gen new address, but how i move the balance over? 18:18 < mlz> you can send your coins to another wallet 18:18 < mlz> lncli sendcoins -h 18:18 < skace> but when i gen new address, old one still active? 18:18 < skace> so can send from it? 18:18 < skace> can i gen new one if old one can't be converted? 18:19 < mlz> hm actually this latest commit would require you to delete the whole .lnd, so you have to send your coins out first before update 18:19 < skace> so then my question remains 18:20 < mlz> the new wallet will only have np2wkh and p2wkh address types 18:20 < skace> how to show current ones? 18:21 < mlz> what do you mean? 18:21 < skace> current address(s) 18:22 < mlz> i don't think there's a way 18:22 < mlz> you've already updated and you're running the old .lnd data? 18:22 < skace> so if i didn't note it down (which i did) i'd have no way of knowing? 18:22 < skace> i reverted back 18:22 < mlz> now you can do: lncli walletbalance 18:23 < skace> that shows balance 18:23 < mlz> then send your coins to another wallet, like a Core wallet 18:23 < mlz> you are on testnet, correct? 18:23 < skace> ahh ok 18:23 < skace> didn't think about core 18:24 < skace> that pretty much sorts my problem 18:35 -!- colatkinson [~colatkins@cpe-67-240-56-42.nycap.res.rr.com] has joined #lnd 18:38 < lightningbot1> Or just get more coins from a faucet? 18:53 < someone__> Something was wrong with bitcoind. "getblockchaininfo" was broken, so I restarted bitcoind. Now "getblockchaininfo" works. 18:53 < someone__> But getting the following error when doing "lncli newaddress np2wkh": "[lncli] rpc error: code = Unavailable desc = grpc: the connection is unavailable" 18:53 < someone__> Also found the following in the logs: lnd[29865]: Attempting automatic RPC configuration to bitcoind lnd[29865]: Automatically obtained bitcoind's RPC credentials lnd[29865]: 2018-03-08 09:47:39.273 [INF] LTND: Version 0.3.0-alpha lnd[29865]: 2018-03-08 09:47:39.273 [INF] CHDB: Checking for schema update: latest_version=0, db_version=0 lnd[29865]: 2018-03-08 09:47:39.326 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080 lnd[29 19:10 < mlz> someone__, make sure your bitcoind has ZMQ, bitcoin.conf has "txindex=1", and it's fully synced to testnet blockchain 19:20 < someone__> thanks for the help 19:20 < someone__> does this mean i have ZMQ: 19:20 < someone__> zmqpubrawblock=tcp://127.0.0.1:29000 zmqpubrawtx=tcp://127.0.0.1:29000 19:29 -!- someone__ [5b5cc765@gateway/web/freenode/ip.91.92.199.101] has quit [Ping timeout: 260 seconds] 19:30 < mlz> no it doesn't prove you have zmq, it's just a .conf setup for it 19:30 -!- someone__ [7da1826e@gateway/web/freenode/ip.125.161.130.110] has joined #lnd 19:30 -!- attilio [~attilio@cm-84.210.20.218.getinternet.no] has quit [Ping timeout: 256 seconds] 19:30 < mlz> i'm guessing if you downloaded it from bitcoin.org or bitcoincore.org then it has zmq but idk for sure 19:31 < mlz> i compile bitcoin so i know if you compiled it and missed it, i can show you how to recompile it 19:43 < someone__> yes, i did download it from bitcoin.org 19:44 < mlz> someone__, is it fully synced and do you run it with --txindex? 19:44 < someone__> found a more detailed error: [unable to start wallet: status code; 401, response: ""] 19:45 < someone__> yes bitcoind is fully synced and using txindex=1 19:46 < mlz> i'm not sure why you have all these errors, i'm running several nodes and they are fine 19:48 < someone__> probably because i dont know what i am doing :) 19:48 < mlz> i've only followed guides straight from LND site, the best thing is to learn it from the source, this is the guide i use: https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md 19:49 < mlz> you can set it up on a laptop, get lnd to run, open a channel with someone, just basic stuff like that 19:50 < someone__> 401 should be some authentication error i think 19:50 < someone__> do we have to use btcd? did you ever get it working with bitcoind? 19:51 < mlz> i'm running both btcd and bitcoind 19:51 < mlz> i have two testnet nodes using bitcoind, one testnet node using btcd 19:52 < mlz> actually i have another one but haven't updated it yet 19:52 < mlz> you can create different users and run multi nodes 20:18 -!- ken2812221 [~User@133-203.dorm.ncu.edu.tw] has quit [Ping timeout: 240 seconds] 20:20 -!- ken2812221 [~User@133-203.dorm.ncu.edu.tw] has joined #lnd 20:24 -!- bryan_w [~is@2600:2108:9:8a90:f3b8:cb41:7595:463f] has joined #lnd 20:36 < lndbot> @bvu @roasbeef slack's plan to close IRC gateway: https://slack.com/account/gateways 20:47 -!- Styils [Styil@gateway/vpn/privateinternetaccess/styil] has joined #lnd 20:50 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has quit [Ping timeout: 240 seconds] 20:57 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has quit [Read error: No route to host] 20:58 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has joined #lnd 21:20 -!- iv4n [~iv4n@1.47.239.99] has joined #lnd 21:21 -!- iv4n2 [~iv4n@1.47.74.213] has joined #lnd 21:24 -!- iv4n [~iv4n@1.47.239.99] has quit [Ping timeout: 245 seconds] 21:25 -!- iv4n2 [~iv4n@1.47.74.213] has quit [Ping timeout: 240 seconds] 21:34 -!- Styils [Styil@gateway/vpn/privateinternetaccess/styil] has quit [Remote host closed the connection] 21:37 -!- naribia [adefec0d@gateway/web/freenode/ip.173.239.236.13] has joined #lnd 21:49 -!- go1111111 [~go1111111@199.231.240.191] has quit [Quit: Leaving] 21:50 -!- go1111111 [go1111111@gateway/vpn/privateinternetaccess/go1111111] has joined #lnd 21:51 < lndbot> boo slack… 21:59 -!- Styil [Styil@gateway/vpn/privateinternetaccess/styil] has joined #lnd 22:02 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-gloedtjuigtxllrf] has joined #lnd 22:31 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 22:32 < Veggen> hrmf. Is it only me? All my lncli connect fails either with EOF or with timeout... 22:32 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has quit [Ping timeout: 256 seconds] 22:32 < Veggen> [lncli] rpc error: code = OutOfRange desc = EOF 22:36 -!- sh_smith [~sh_smith@cpe-76-174-26-91.socal.res.rr.com] has quit [Ping timeout: 245 seconds] 22:39 -!- sh_smith [~sh_smith@cpe-76-174-26-91.socal.res.rr.com] has joined #lnd 22:48 < Veggen> finally found one. 22:49 -!- Bezpol [5bf6447a@gateway/web/freenode/ip.91.246.68.122] has joined #lnd 22:56 < naribia> --txindex is necesary for lightning right? 23:02 < Veggen> yes. 23:02 < naribia> how come? 23:03 < Veggen> not sure, but it does :) 23:04 < naribia> just curious what is unsufficient with utxo outpoint indexing 23:04 < naribia> ins..* 23:08 < Veggen> might not be required soon: https://github.com/lightningnetwork/lnd/pull/751 23:13 -!- betawaffle [~betawaffl@h1.kdf.io] has quit [Excess Flood] 23:16 -!- betawaffle [~betawaffl@h1.kdf.io] has joined #lnd 23:19 < Bezpol> If I have in wallet balance 15000000 and start open channel for to another peer with capacity 1000000 and push 500000 then the 15000000 (13999847) goes to unconfirmed balance in wallet ? 23:25 < Bezpol> Ok. I think that is correct. 23:29 -!- naribia [adefec0d@gateway/web/freenode/ip.173.239.236.13] has quit [Ping timeout: 260 seconds] 23:31 -!- naribia [adefec0d@gateway/web/freenode/ip.173.239.236.13] has joined #lnd 23:36 -!- mrfelton [~tom@79.red-88-6-7.staticip.rima-tde.net] has joined #lnd 23:36 -github-lnd:#lnd- [lnd] cfromknecht opened pull request #808: glide: update btcwallet to include waddrmgr deadlock fix (master...upd-btcwallet-for-deadlock-fix) https://git.io/vANSC 23:44 -!- pioklo [~Pioklo@158.red-83-63-155.staticip.rima-tde.net] has joined #lnd 23:54 -!- IllusiveMan [uid279126@gateway/web/irccloud.com/x-txjeppeaycbyqmws] has left #lnd []