--- Log opened Sun May 03 00:00:11 2020 00:31 < Educob2> Thanks. Can I know the mnemonic and passphrase of the wallet? 01:40 < darosior> The raw seed is stored in /hsm_secret, you should backup this file. About the passphrase you can encrypt this file with the --encrypted-hsm startup option but it's by default stored in clear 02:04 < Educob2> Thanks. 03:41 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 03:42 -!- dmkathayat [~quassel@ec2-13-233-97-253.ap-south-1.compute.amazonaws.com] has quit [Ping timeout: 258 seconds] 03:44 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 03:44 -!- vasild_ is now known as vasild 03:45 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 03:45 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 04:04 -!- mdunnio [~mdunnio@208.59.170.5] has joined #c-lightning 04:08 -!- mdunnio [~mdunnio@208.59.170.5] has quit [Ping timeout: 256 seconds] 04:16 -!- Victor_sueca is now known as Victorsueca 04:18 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 04:19 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 04:30 < Educob2> I try to start lightning with a plugin (--plugin=path/plugin.py) and I get a Permission denied error. 04:37 < Educob2> I need it to make executable. Silly me. 04:45 < Educob2> In the plugin I am importing requests to be able to call my web server but I get: import: not authorized `requests' @ error/constitute.c/WriteImage/1028. 04:48 < Educob2> The line "plugin = Plugin()" gives error: Syntax error: "(" unexpected 05:04 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 272 seconds] 05:27 < Educob2> How do I install pyln? 05:42 < darosior> Educob2: You can use pip (pip install pyln-client) or directly use the setup.py (find the lib in contrib/) 05:43 < Educob2> Thanks. 05:49 <@cdecker> Educob2: you need a sheback (#!/usr/bin/env python3) as the first line of the plugin so your OS can recognize how to execute it (it needs to use the python3 interpreter) 05:49 <@cdecker> See here for an explanation: https://en.wikipedia.org/wiki/Shebang_(Unix) 05:52 < Educob2> I have pasted sendpay_notifications.py file in plugins folder. I get a long list of errors: 05:52 < Educob2> Notification handler notify_sendpay_success for notification sendpay_success does not have a variable keyword argument. 05:52 -!- Nebraskka [~Nebraskka@178.62.130.190] has quit [Quit: Good day, my fellow citizens!~] 05:52 < Educob2> plugin-sendpay_notifications.py: Notification handler notify_sendpay_failure for notification sendpay_failure does not have a variable keyword argument. 05:52 < Educob2> plugin-sendpay_notifications.py: RPC method 'listsendpays_plugin' does not have a docstring. 05:52 < Educob2> plugin-bcli: Could not connect to 'lightning-rpc': Connection refused 05:53 < Educob2> Where can I find a subscriptions plugin that runs ok? 05:53 <@cdecker> That's quite alright, these are just warnings that some functions may break in future since they don't take variable keyword args and they don't have a documentation string 05:54 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Ping timeout: 246 seconds] 05:54 <@cdecker> The plugin should be working, there's just some things that could be improved 05:55 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 05:56 < Educob2> You mean it works inspite all the warning/errors? 05:56 < Educob2> Ah ok. 05:57 <@cdecker> Yep, you'd get a python stack trace in the logs if they'd crash outright 05:57 < Educob2> but what about this error: Could not connect to 'lightning-rpc': Connection refused ? 05:58 <@cdecker> That's a known issue with the bitcoin backend plugins: they need to start before we accept RPC connections, so we can do some sanity before accepting RPC commands, but they still check if the RPC is up, and that'll report a one-time error 05:58 < Educob2> But will it work when a notification is reported? 05:59 <@cdecker> Yes, it'll work 05:59 <@cdecker> Here's the issue tracking that annoying log entry about RPC not being ready: https://github.com/ElementsProject/lightning/issues/3553 06:00 <@cdecker> It's a bit of a nuisance, but will not impact functionality 06:00 < Educob2> Thanks. Do I need the plugins already included: fundchannel, pay, sendpay_notifications, bcli, autoclean, keysend? 06:01 <@cdecker> Yes, those are there to add functionality on top of the bare-bones RPC, and without the bcli plugin we'll refuse to start since we can't communicate with the bitcoin network 06:03 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Ping timeout: 256 seconds] 06:04 < Educob2> Thanks. 06:05 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 06:11 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 06:23 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Ping timeout: 240 seconds] 06:24 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 06:24 < darosior> Is someone working on MPP sending support for `pay` ? If not I might give it a shot 06:25 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 06:31 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 06:31 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 06:37 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 06:42 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 07:03 -!- belcher [~belcher@unaffiliated/belcher] has joined #c-lightning 07:06 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Ping timeout: 240 seconds] 07:09 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 07:20 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 07:28 <@cdecker> darosior: I'm currently modularizing the pay command so we can compartmentalize functionality into pay-modifiers, splitting logic being one such modifier 07:28 <@cdecker> But it's taking me a bit longer than expected 08:02 <@cdecker> On the upside though it should be possible to add or remove modifiers on a whim, and have them nicely bundled up in a way they don't sprawl all over the codebase 08:05 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has joined #c-lightning 08:39 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 08:59 -!- Kostenko [~Kostenko@2001:8a0:72b2:3700:584d:686c:4803:22d3] has joined #c-lightning 09:11 < fiatjaf> awesome 09:32 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 10:12 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has joined #c-lightning 10:23 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 10:34 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 272 seconds] 10:34 < darosior> Great ! :) 10:47 < Educob2> I have set two regtest ln nodes, create a channel. Create an invoice in channel 2 and pay it from channel 1. 10:47 < Educob2> in node 2 I run listinvoices, I get: "amount_received_msat": "100msat","paid_at": 1588526934 10:48 < Educob2> but then I run listfunds and I get: "our_amount_msat": "0msat", 10:48 < Educob2> while in node 1 listfunds reflect the 100msat sent: "our_amount_msat": "999999000msat", 10:48 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has joined #c-lightning 10:49 < Educob2> Shouldn't "our_amount_msat" in node 2 reflect the 100msat received? 10:50 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 10:50 < darosior> Educob2: Interesting, does it get accounted if it reaches one whole sat ? 10:56 < Educob2> I will pay more. Let's see 10:57 < Educob2> I created a 2nd invoice in node 2 and for both invoices I got: "warning_deadends": "No channel with a peer that is not a dead end" 10:58 < Educob2> What does it mean? 10:59 < Educob2> I have sent 10.000msat and node 1 says: "our_amount_msat": "999989000msat", reflecting both payments 10:59 < Educob2> but node 2 says: "our_amount_msat": "10000msat", reflecting only the 2nd payment. What's going on 11:06 < Educob2> so the 1st payment doesn't exist in the funds for node 2 eventhough it knows the 1st payment has been paid. I don't want to do more payments until this (potentially huge) error is sorted out. 11:07 < Educob2> In output of node 2 I see this. UNUSUAL lightningd: invoice: insufficient incoming capacity for 100msat 11:26 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 11:28 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 12:11 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 12:12 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 12:12 -!- vasild_ is now known as vasild 13:30 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 13:52 < Educob2> So many weird things when paying invoices. I have opened this issue: https://github.com/ElementsProject/lightning/issues/3699 13:56 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has joined #c-lightning 14:06 < Educob2> I can't find the code in python to be notified when receiving a payment. Anyone knows how to do it? 14:21 -!- queip [~queip@unaffiliated/rezurus] has joined #c-lightning 14:47 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 14:47 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 15:11 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 240 seconds] 15:27 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 15:29 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 15:38 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 16:17 -!- gojiHmPFPN [~textual@c-73-47-220-190.hsd1.ma.comcast.net] has quit [Ping timeout: 246 seconds] 16:19 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 16:28 -!- Nebraskka [~Nebraskka@51.83.249.56] has joined #c-lightning 16:38 -!- Nebraskka [~Nebraskka@51.83.249.56] has quit [Quit: Good day old chaps] 16:51 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 16:53 -!- Nebraskka [~Nebraskka@51.83.249.56] has joined #c-lightning 17:03 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has left #c-lightning [] 17:07 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Quit: jb55] 17:50 < fiatjaf> Educob2: there are 3 ways, one is to call waitinvoice with the label of the invoice you're waiting for 17:51 < fiatjaf> another is to call waitanyinvoice progressively with an index that increments as you are notified of each payment 17:51 < fiatjaf> (each received payment will have a pay_index according to the time they were received) 17:52 < fiatjaf> another is to register your python app as a plugin and subscribe to invoice_payment events: https://lightning.readthedocs.io/PLUGINS.html#invoice-payment 17:53 < fiatjaf> another way is to install the https://github.com/fiatjaf/lightningd-gjson-rpc/tree/master/cmd/webhook plugin and configure a webhook url to call on invoice_payment events 17:53 < fiatjaf> ~ 18:04 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 20:39 -!- Amperture [~amp@65.79.129.113] has joined #c-lightning 20:39 -!- Amperture [~amp@65.79.129.113] has quit [Client Quit] 21:19 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 21:22 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 21:22 -!- vasild_ is now known as vasild 21:54 -!- rh0nj [~rh0nj@88.99.167.175] has quit [Remote host closed the connection] 21:55 -!- rh0nj [~rh0nj@88.99.167.175] has joined #c-lightning 22:59 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 22:59 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 23:00 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 23:29 -!- zmnscpxj_ [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has joined #c-lightning 23:35 < Educob2> Thanks. I have tried option 3 and it doesn't work. I have a python plugin that receives notification for sendpay_success but it's not notified for invoice_payment. Can you please pass me a working python code for that? 23:38 < Educob2> I can't find python examples for waitanyinvoice and waitinvoice. This is very frustrating. 23:41 < Educob2> These are some of the codes I have tried with: https://github.com/ElementsProject/lightning/issues/3701 23:42 < darosior> Educob2: https://github.com/ElementsProject/lightning/blob/34ed2093acbc57719d8c63fb33ace41b505d7253/contrib/plugins/helloworld.py#L43 23:42 < Educob2> Thanks. I have tried that but it doesn't get notified. 23:43 < Educob2> I just tried it once again to make sure and the plugin doesn't get notified. 23:44 < Educob2> I receive the usual output: 2020-05-04T06:43:28.515Z INFO lightningd: Resolved invoice 'test 13 node 2' with amount 1005msat in 1 htlcs 23:51 < Educob2> I have tried to pay from node 2 to node 1 and I get this error: 'Could not find a route' --- Log closed Mon May 04 00:00:10 2020