--- Log opened Fri May 15 00:00:21 2020 00:30 -!- sr_gi [~sr_gi@183.red-83-34-186.dynamicip.rima-tde.net] has joined #c-lightning 02:55 -!- Educob2 [5a4ae098@90.74.224.152] has joined #c-lightning 02:55 < Educob2> Hi. What happens if I pay (or get paid) an invoice twice? Do I pay double the amount or just once? Thanks. 03:52 -!- Educob2 [5a4ae098@90.74.224.152] has quit [Ping timeout: 245 seconds] 04:18 -!- Educob2 [5a4ae098@90.74.224.152] has joined #c-lightning 04:18 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 04:19 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 04:40 < darosior> Educob2: C-lightning will prevent you to pay an invoice twice (it's insecure as you reuse the same secrets to form the routes), I think other implem will too 04:40 < Educob2> Thanks. 04:43 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 04:43 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 05:04 -!- liberliver1 [~Thunderbi@x4e37e5be.dyn.telefonica.de] has joined #c-lightning 05:08 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Ping timeout: 258 seconds] 05:08 -!- liberliver1 is now known as liberliver 05:25 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has quit [Remote host closed the connection] 05:25 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has joined #c-lightning 06:53 -!- mdunnio [~mdunnio@208.59.170.5] has joined #c-lightning 07:13 -!- liberliver [~Thunderbi@x4e37e5be.dyn.telefonica.de] has quit [Ping timeout: 264 seconds] 07:13 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has joined #c-lightning 07:29 < Educob2> What is a better strategy to manage programmatically sending payments: 07:30 < Educob2> 1) call synchronously pay method (await pay) 07:30 < Educob2> 2) call pay method without waiting and use a plugin to get notified with sendpay_success event? 07:37 <@cdecker> Depends on the level of granularity you're interested in: if all you want is to get a payment from A to B you'd probably use `pay` and wait for it to complete (if desired we could add a `background=True` parameter to send it to background and then poll `paystatus`), if you require more control over individual attempts, partial payments and retries you'd use sendpay and listsendpay or 07:38 <@cdecker> waitsendpay 07:38 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Ping timeout: 265 seconds] 07:40 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 07:48 < Educob2> Wow! This is more complicated than I thought. Thanks. 07:50 <@cdecker> Hehe, it's more than likely you just want to use `pay` ;-) 07:51 < Educob2> But in order to use sendpay I must first call getroute. Which has weird parameters like riskfactor 07:51 < Educob2> I need granularity. 07:51 <@cdecker> Ah, ok in that case yes the primitives are there but may require some tinkering 07:52 < Educob2> Tinkering? 07:52 <@cdecker> We do expose loads of things, on a couple of different abstraction levels, maybe we should also start using man-like numbered levels to distinguish which ones should be seen by default 07:53 <@cdecker> tinkering = experimenting a bit and figure out how things fit together 08:03 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has quit [Ping timeout: 260 seconds] 08:05 < Educob2> Is it possible that the route returned by getroute doesn't work when I call sendpay? 08:05 < Educob2> If I call getroute a second time will I get a different route? 08:11 < Educob2> Is there any complete sample code for sending payments? 08:13 <@cdecker> From where are you trying to do this? Using the pyln-client library? 08:13 <@cdecker> And yes, getroute randomizes the routes in order to make an attacker's life difficult 08:17 < Educob2> No. Node. javascript 08:18 <@cdecker> I assume darosior's clightningjs? 08:19 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has joined #c-lightning 08:19 < Educob2> Never heard about darosior. 08:20 <@cdecker> Anyhow, he might be able to point you to an existing example :-) 08:20 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has quit [Max SendQ exceeded] 08:20 <@cdecker> darosior is one of our core contributors (and you spoke with him in this chat 4 hours ago ^^) 08:21 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has joined #c-lightning 08:22 < Educob2> I am using a simple interface to c-lightning. 08:22 < Educob2> I'll take a look at darosior. Does it have sample codes? 08:22 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has quit [Max SendQ exceeded] 08:22 <@cdecker> It has a couple from what I can tell, yes 08:22 <@cdecker> Here's the repo https://github.com/darosior/clightningjs 08:22 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has joined #c-lightning 08:25 < Educob2> Thanks. I'll take a look 08:27 < darosior> Educob2: don't hesitate to ping me (or open issues) even with nits about clightningjs, I'm really interested in having more feedback about it (it's not as robust as pyln (yet?) ) 08:28 < Educob2> Thanks. My goal is to give ln service to thousands of people so I need to find the right way to do it. 08:34 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 244 seconds] 08:52 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 09:13 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 260 seconds] 09:18 -!- jonatack [~jon@134.19.179.163] has joined #c-lightning 09:23 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 09:24 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 09:28 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Ping timeout: 246 seconds] 09:46 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has quit [Remote host closed the connection] 09:48 -!- ghost43 [~daer@gateway/tor-sasl/daer] has quit [Remote host closed the connection] 09:48 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 09:49 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #c-lightning 09:56 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has quit [Remote host closed the connection] 10:11 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has quit [Remote host closed the connection] 10:11 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has joined #c-lightning 10:14 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 10:41 -!- Educob2 [5a4ae098@90.74.224.152] has quit [Remote host closed the connection] 10:56 -!- skme9_ [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has joined #c-lightning 10:57 -!- skme9 [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has quit [Ping timeout: 260 seconds] 11:25 -!- mdunnio [~mdunnio@208.59.170.5] has quit [Remote host closed the connection] 11:34 -!- mdunnio [~mdunnio@208.59.170.5] has joined #c-lightning 11:56 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has quit [Remote host closed the connection] 11:57 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has joined #c-lightning 12:15 -!- skme9_ [~skme9@2402:3a80:6ba:a174:6dea:8554:b247:3a62] has quit [Ping timeout: 244 seconds] 12:21 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has quit [Remote host closed the connection] 12:22 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has joined #c-lightning 13:06 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 13:06 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 13:48 -!- kristapsk_ [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 13:51 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has quit [Remote host closed the connection] 14:00 -!- kristapsk_ is now known as kristapsk 14:40 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 260 seconds] 14:57 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 15:10 -!- mdunnio [~mdunnio@208.59.170.5] has quit [Remote host closed the connection] 16:18 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 16:19 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 17:24 -!- afk11` [~afk11@gateway/tor-sasl/afk11] has quit [Ping timeout: 240 seconds] 17:25 -!- afk11` [~afk11@gateway/tor-sasl/afk11] has joined #c-lightning 17:35 -!- mdunnio [~mdunnio@208.59.170.5] has joined #c-lightning 18:02 -!- kristapsk_ [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 18:02 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has quit [Remote host closed the connection] 18:03 -!- mdunnio [~mdunnio@208.59.170.5] has quit [Remote host closed the connection] 18:04 -!- jonatack [~jon@134.19.179.163] has quit [Ping timeout: 264 seconds] 18:06 -!- jonatack [~jon@37.173.34.185] has joined #c-lightning 19:16 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 256 seconds] 20:12 -!- skme9 [~skme9@2402:3a80:682:eea0:40a9:8111:d5e8:581a] has joined #c-lightning 20:29 -!- skme9_ [~skme9@2402:3a80:6a2:f950:40a9:8111:d5e8:581a] has joined #c-lightning 20:31 -!- skme9 [~skme9@2402:3a80:682:eea0:40a9:8111:d5e8:581a] has quit [Ping timeout: 260 seconds] 21:20 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 21:23 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 21:23 -!- vasild_ is now known as vasild 21:24 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 21:24 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 21:42 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 21:43 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning --- Log closed Sat May 16 00:00:22 2020