--- Log opened Mon May 04 00:00:10 2020 00:18 < darosior> Educob2: I you founded the channel from 1 to 2 and only passed 1000msat : you need to fill the reserve before putting capacity to l2 00:18 < Educob2> I am going to start the nodes from scratch. Thanks 01:23 < Educob2> 2nd notofication now works. Thanks 01:44 < Educob2> But the issue remains that when node 1 pays an invoice of 100msats it really spends 1000msats while node 2 acknowledges invoice paid but has our_amount_msat=0msats. 01:44 < Educob2> I think this is a huge issue. 01:47 < darosior> Educob2: Maybe `our_reserve_msat` increased ? 01:52 -!- Kostenko [~Kostenko@2001:8a0:72b2:3700:584d:686c:4803:22d3] has quit [Read error: Connection timed out] 01:52 < Educob2> In node 1 it has diminished 1000msatosh. In node 2 is still 0msat 01:54 < Educob2> node 1: "our_amount_msat": "1999999000msat",. Node 2: "our_amount_msat": "0msat", eventhough listinvoices says: "amount_received_msat": "102msat", (in previous attempt it said 100msat) 01:54 < Educob2> Either something is wrong in my node configuration or there is critical issues in c-lightning. 01:55 < zmnscpxj_> We sometimes overpay slightly for privacy reasons. It obscures who the payee and payer is 01:55 < zmnscpxj_> we do not suppress this overpaying in the direct payment case because it prevents the payee from reliably guessing that the payer is a direct one. 01:56 < zmnscpxj_> Did you check `our_amount_msat` before paying? 01:56 < Educob2> Ah. So the extra msats is just "bad" reporting. 01:56 < Educob2> Node 1 before sending was 2000000000msat. 01:56 < zmnscpxj_> hard to choose. the payee got more than the expected amount, which the payee likes 01:56 < zmnscpxj_> hmmm 01:57 < zmnscpxj_> could be a jump in reserves due to the recent issue with locking channels.... maybe? 01:57 < Educob2> Both times node 1 lost 1000msato instead of 100 and node2 receives nothing even though it reports invoice as paid 01:57 < zmnscpxj_> not certain anymore, ignore me ^^ 01:57 < Educob2> locking channels? 01:58 < Educob2> sub satoshi don't work. 01:58 < zmnscpxj_> Well, yes. sub-satoshi is rounded down 01:58 < zmnscpxj_> ah 01:58 < zmnscpxj_> subsatoshi amounts 01:58 < zmnscpxj_> yes 01:58 < zmnscpxj_> sub-satoshi is rounded down to nearest satoshi onchain 01:59 < zmnscpxj_> because onchain cannot represent subsatoshi 01:59 < zmnscpxj_> eventually it "adds up" correctly but only if it is completely offchain 01:59 < zmnscpxj_> once you drop onchain, because onchain does not represent satoshi amounts, you get nothing 01:59 < zmnscpxj_> so it is correct 01:59 < zmnscpxj_> so if you keep doing 100x 100msats you will get approximately 10sat onchain 02:00 < zmnscpxj_> or maybe you need to get even more, because of dust limits 02:00 < zmnscpxj_> basically, the idea was that subsatoshi amounts are so small, and onchain fees so large (larger than subsatoshi amounts!!) that you would not be bothered about subsatoshi rouddown 02:01 < zmnscpxj_> the act of closing the channel involves channel fees much larger in effect than the subsatoshi rounddown, which losees at most 1 satoshi 02:01 < zmnscpxj_> whereas the channel close is paying hundreds of satoshi in fees 02:01 < zmnscpxj_> so the less than 1% loss is considered negligible 02:01 < zmnscpxj_> does that explain the behavior? 02:03 < zmnscpxj_> You *can* pay subsatoshi amounts, but you will only really feel it if there are large numbers of them, so it is more for large amounts of micropayments 02:03 < Educob2> Yes. but what about lighting network for micropayments like paying every minute of watching a movie. Would that work with what you describe? 02:03 < zmnscpxj_> If a movie is a hundred minutes or so? Then the total is no longer subsatoshi, right? 02:03 < zmnscpxj_> ultimately it is the total that you can actually commit onchain 02:04 < zmnscpxj_> someone can get a few minutes of movie "for free", true, but only by closing the channel, which incurs fees to them that are much larger than the cost of the few minutes of movie 02:04 < zmnscpxj_> so yes, they can steal from you by spiting their own noses 02:05 < zmnscpxj_> that is the reason why we did not remove subsatoshi amounts in Adelaide 2018 meetup 02:05 < Educob2> So you are saying that eventhough the node 2 didn't receive the 1st 100msats, eventually it will receive the right amount after many times receiving subsats???? 02:05 < zmnscpxj_> yes 02:05 < Educob2> Wow!!!! Thanks!!!! 02:06 < zmnscpxj_> I mean, that is what micropayments are 02:06 < zmnscpxj_> right? 02:06 < zmnscpxj_> np 02:06 < Educob2> Yes. that what it should be. 02:06 < Educob2> I am going to run a test sending 100msats many times. 02:06 < Educob2> You have been most helpful. Thanks a lot 02:08 < Educob2> Anyway it feels weird that node 2 doesn't say it received 100msats (or 102msats). I will test the repeated sending. 02:09 -!- zmnscpxj__ [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has joined #c-lightning 02:10 -!- zmnscpxj_ [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has quit [Ping timeout: 240 seconds] 02:13 < zmnscpxj__> glad I cleared that up 02:55 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Quit: jonatack] 02:58 < darosior> Educob2: Yes it is you did open an issue, right ? 03:07 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 03:28 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has joined #c-lightning 03:28 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Client Quit] 03:29 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has joined #c-lightning 04:07 -!- ctrlbreak_MAD [~ctrlbreak@159.2.182.106] has joined #c-lightning 04:10 -!- ctrlbreak [~ctrlbreak@159.2.182.106] has quit [Ping timeout: 244 seconds] 04:18 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 04:19 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 04:42 < Educob2> Yes. I opened an issue. 04:42 < Educob2> I will make the test and close it. 04:45 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 246 seconds] 04:48 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 05:35 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 07:23 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 07:23 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 07:31 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Ping timeout: 265 seconds] 07:38 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has joined #c-lightning 08:04 -!- queip [~queip@unaffiliated/rezurus] has quit [Ping timeout: 265 seconds] 08:20 -!- queip [~queip@unaffiliated/rezurus] has joined #c-lightning 08:34 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 272 seconds] 08:50 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 09:19 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 09:23 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 09:23 -!- vasild_ is now known as vasild 09:58 -!- Kostenko [~Kostenko@2001:8a0:72b2:3700:584d:686c:4803:22d3] has joined #c-lightning 10:08 < Educob2> Hi darosior. You were right. I sent like 40 times 100msats and now I have 4000msats. Everything clear now. Thanks. 10:25 < sr_gi> Hey guys, I've seen that the node_factory fixture for pyln-testing has the scope set to function. Is there any way to reuse the nodes created through the factory so I can split the tests? 10:25 < sr_gi> I can work around it with global variables and such, but I was wondering if there was a cleaner way 10:46 < darosior> Educob2: cool :-) 10:47 < darosior> sr_gi: it's a pytest fixture which I think is only passed to test_xxxxx() functions, but maybe cdecker has an idea ? 10:48 < darosior> > I can work around it with global variables and such, but I was wondering if there was a cleaner way => Yeah or a biigg function ^^ 10:48 < darosior> Is the node_fctory setup **that** long for you ? 11:03 < sr_gi> Without dev flags takes ~1-1.5 min to init the tests, but it's mainly to avoid setting up the tower every time 11:57 -!- treehug88 [~textual@pool-71-105-170-196.nycmny.fios.verizon.net] has quit [Quit: Textual IRC Client: www.textualapp.com] 12:22 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Ping timeout: 272 seconds] 12:35 -!- Educob2 [5a4ae098@90.74.224.152] has quit [Remote host closed the connection] 12:42 -!- treehug88 [~textual@pool-71-105-170-196.nycmny.fios.verizon.net] has joined #c-lightning 13:07 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 272 seconds] 13:09 -!- jonatack [~jon@213.152.161.149] has joined #c-lightning 13:28 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Quit: WeeChat 2.7.1] 13:29 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 13:36 -!- dr-orlovsky [~dr-orlovs@xdsl-188-155-161-135.adslplus.ch] has joined #c-lightning 13:38 -!- dr-orlovsky [~dr-orlovs@xdsl-188-155-161-135.adslplus.ch] has quit [Client Quit] 14:35 < darosior> sr_gi: Then you probably want to add a new pytest fixture, it's pretty straightforward 15:24 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 15:48 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 15:48 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 15:58 -!- jonatack [~jon@213.152.161.149] has quit [Ping timeout: 246 seconds] 16:01 -!- jonatack [~jon@37.167.8.190] has joined #c-lightning 16:18 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 260 seconds] 16:19 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 16:35 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 16:42 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 16:48 -!- mdunnio [~mdunnio@208.59.170.5] has joined #c-lightning 16:53 -!- mdunnio [~mdunnio@208.59.170.5] has quit [Ping timeout: 260 seconds] 19:22 -!- Kostenko [~Kostenko@2001:8a0:72b2:3700:584d:686c:4803:22d3] has quit [Read error: Connection reset by peer] 19:48 -!- Kostenko [~Kostenko@2001:8a0:72b2:3700:584d:686c:4803:22d3] has joined #c-lightning 21:13 -!- zmnscpxj_ [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has joined #c-lightning 21:15 -!- zmnscpxj__ [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has quit [Ping timeout: 240 seconds] 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:28 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has quit [Remote host closed the connection] 21:29 -!- kristapsk [~KK@gateway/tor-sasl/kristapsk] has joined #c-lightning 23:54 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 23:54 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning --- Log closed Tue May 05 00:00:11 2020