--- Day changed Fri Nov 24 2017 00:17 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Remote host closed the connection] 00:38 -!- geezas [uid253218@gateway/web/irccloud.com/x-qksrpocdqmvoegll] has joined #lightning-dev 00:50 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 00:53 -!- alanc_ [~chatzilla@109.255.196.64] has joined #lightning-dev 01:00 -!- laurentmt [~Thunderbi@92.154.68.134] has joined #lightning-dev 01:24 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 01:46 -!- dabura667 [~dabura667@p98110-ipngnfx01marunouchi.tokyo.ocn.ne.jp] has quit [Quit: Leaving] 01:54 -!- deafboy [quasselcor@cicolina.org] has joined #lightning-dev 01:57 -!- jtimon [~quassel@164.31.134.37.dynamic.jazztel.es] has joined #lightning-dev 02:04 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Remote host closed the connection] 02:05 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #lightning-dev 02:31 -!- Jakuza [Jakuza@14-202-54-213.tpgi.com.au] has quit [] 02:36 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-usawnknhuexmynfw] has joined #lightning-dev 03:00 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 248 seconds] 03:17 -!- geezas [uid253218@gateway/web/irccloud.com/x-qksrpocdqmvoegll] has quit [Quit: Connection closed for inactivity] 03:32 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Remote host closed the connection] 03:32 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #lightning-dev 03:37 < cdecker> alanc_, ./lightningd --help should give you a list of all the cli options 03:41 -!- Cogito_Ergo_Sum [~Myself@athedsl-4564842.home.otenet.gr] has joined #lightning-dev 03:41 -!- Cogito_Ergo_Sum [~Myself@athedsl-4564842.home.otenet.gr] has quit [Changing host] 03:41 -!- Cogito_Ergo_Sum [~Myself@unaffiliated/cogito-ergo-sum/x-7399460] has joined #lightning-dev 03:44 < alanc_> Thanks. I found that and I'm working through it. Are there any tutorials that show worked examples out there? Or is there a well commented test that I could follow? 03:49 < cdecker> All of our test currently use the python RPC implementation 03:49 < cdecker> What are you trying to do? Maybe I can walk you through it 03:52 < renlord> cdecker: i'm trying to compile c-lightning in alpine, but there are some issues with the sources in ccan. For example, on alpine, unistd.h sits at the root lib dir as oppose to being nested in sys/unistd.h 03:53 < cdecker> Hm, haven't tried that myself tbh 03:53 < renlord> and a couple of other little stuff here and there as well 03:53 < cdecker> Maybe you can report that to the ccan repository? 03:54 < cdecker> https://github.com/rustyrussell/ccan/ 03:54 < renlord> okay 03:54 < renlord> looks like he just fixed: https://github.com/rustyrussell/ccan/commit/6ac981db899685916603fd2e12dcbbd760a2b294 03:55 < cdecker> Ok, so it'll get pulled in with the next merge 03:59 -!- laurentmt [~Thunderbi@92.154.68.134] has quit [Ping timeout: 264 seconds] 04:26 -!- intcat [~zshlyk@gateway/tor-sasl/intcat] has quit [Ping timeout: 248 seconds] 04:30 -!- intcat [~zshlyk@gateway/tor-sasl/intcat] has joined #lightning-dev 04:31 -!- Emcy_ [~Emcy@unaffiliated/emcy] has joined #lightning-dev 04:33 -!- Emcy [~Emcy@unaffiliated/emcy] has quit [Ping timeout: 248 seconds] 04:54 < alanc_> cdecker, I'm using a regtest instance of bitcoin and 2 lightning nodes all on the same machine. Trying to create a payment channel and send coins from one to the other. I need to finish up shortly but I'll come back to it in a couple of days. I'm currently exploring using bash scripts but I could switch to python if it's easier/better. 04:54 < cdecker> I had a script somewhere, just a sec 04:55 < cdecker> Here you go: https://gist.github.com/cdecker/07277531b3ad138cf38b5b1055fc2de9 04:56 < cdecker> This sets up 5 nodes, connected in a line, and funds channels along those connections 04:56 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-usawnknhuexmynfw] has quit [Quit: Connection closed for inactivity] 04:57 < alanc_> That looks like it does everything that I was attempting. Thanks a mill. 05:01 -!- tomatopeel [~tomatopee@unaffiliated/tomatopeel] has quit [Ping timeout: 246 seconds] 05:02 -!- m8tion [~m8tion@81-65-53-254.rev.numericable.fr] has joined #lightning-dev 05:16 -!- laurentmt [~Thunderbi@92.154.68.134] has joined #lightning-dev 06:01 -!- ivegotasthma [d43d9942@gateway/web/freenode/ip.212.61.153.66] has joined #lightning-dev 06:01 < ivegotasthma> hello, can I ask lightning related questions here? 06:01 < cdecker> Absolutely 06:01 < cdecker> :-) 06:07 < ivegotasthma> I'm wondering what happens in this situation. Alice and Bob are playing poker, they transact back and forward based on wins. At one point Bob start winning hard, he wins 10 games in a row. After that he decided to go all in and loses everything. Bob wants to cash in on his wins and DOSes Alice. Bob now closes the channel at the state in which he had all the wins and submits it to the blockchain. Is such a situation possib 06:12 < cdecker> That's basically Bob misbehaving and publishing an old state of the channel 06:13 < ivegotasthma> Yes, what happens in that situation 06:13 < cdecker> He'd have to prevent Alice for a long time to react to him publishing the old state, and hope that there aren't any watchtowers that are watching the network on behalf of alice 06:13 < cdecker> If anybody has the retaliation tx and publishes it, then Bob would lose all of his funds in the channel 06:14 < cdecker> You're saying that he doesn't have any funds in the channel anymore, so this'd be a free attack for him 06:14 < cdecker> That's why we have a minimum balance called a reserve which we don't allow Bob to spend, so that the attack always costs Bob something 06:15 < ivegotasthma> what are watchtowers? 06:15 < cdecker> So it'd be dangerous for Bob in any case, and we can make the chance of him succeeding arbitrarily small 06:15 < cdecker> They're basically nodes that watch the network on behalf of other users and can react to people misbehaving 06:18 < ivegotasthma> These watchtowers, do they have priority over users? Can a malicious watchtower accuse Bob is misbehaving? 06:20 < cdecker> They hold on to revoke transactions, these become only valid if Bob actually misbehaves, so they can only do anything in that case 06:20 < cdecker> The revoke transactions return all the funds to Alice if Bob misbehaves 06:21 < ivegotasthma> thanks :) 06:21 -!- ivegotasthma [d43d9942@gateway/web/freenode/ip.212.61.153.66] has quit [Quit: Page closed] 06:21 < cdecker> The revoke transactions are created by Alice and Bob when they agree never to use the old state, and then they distribute them to watchtowers which help them enforce that agreement 06:21 < cdecker> np :-) 06:30 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds] 06:30 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 06:35 -!- laurentmt [~Thunderbi@92.154.68.134] has quit [Quit: laurentmt] 07:17 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Ping timeout: 260 seconds] 07:17 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 07:22 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Ping timeout: 260 seconds] 07:23 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 07:46 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has joined #lightning-dev 07:50 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has quit [Ping timeout: 248 seconds] 07:55 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has joined #lightning-dev 08:05 -!- tombusby [~tombusby@gateway/tor-sasl/tombusby] has quit [Ping timeout: 248 seconds] 08:09 -!- tombusby [~tombusby@gateway/tor-sasl/tombusby] has joined #lightning-dev 08:13 -!- m8tion [~m8tion@81-65-53-254.rev.numericable.fr] has quit [Read error: Connection reset by peer] 08:15 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Remote host closed the connection] 08:15 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 08:19 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 248 seconds] 08:20 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has quit [Quit: WeeChat 1.9] 08:39 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 08:48 -!- alanc_ [~chatzilla@109.255.196.64] has quit [Ping timeout: 240 seconds] 09:15 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has joined #lightning-dev 09:19 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-zsdsiuacpisdsfhx] has joined #lightning-dev 09:41 -!- alreadylate [~textual@37-247-1-221.customers.ownit.se] has joined #lightning-dev 09:55 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Ping timeout: 248 seconds] 09:56 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 09:58 -!- alreadylate [~textual@37-247-1-221.customers.ownit.se] has quit [] 10:24 -!- jb55 [~jb55@70-36-49-138.dyn.novuscom.net] has quit [Ping timeout: 248 seconds] 10:31 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 11:15 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds] 11:16 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 11:20 -!- alanc_ [~chatzilla@109.255.196.64] has joined #lightning-dev 11:34 -!- alanc_ [~chatzilla@109.255.196.64] has quit [Ping timeout: 258 seconds] 11:50 -!- geezas [uid253218@gateway/web/irccloud.com/x-ijhjckixupzcvwcb] has joined #lightning-dev 11:55 -!- jtimon [~quassel@164.31.134.37.dynamic.jazztel.es] has quit [Ping timeout: 240 seconds] 12:20 -!- bsm117532 [~mcelrath@c-73-119-55-73.hsd1.ma.comcast.net] has joined #lightning-dev 12:29 -!- jb55 [~jb55@208.98.200.100] has joined #lightning-dev 12:46 -!- jb55 [~jb55@208.98.200.100] has quit [Ping timeout: 258 seconds] 13:00 -!- alreadylate [~textual@m77-218-245-66.cust.tele2.se] has joined #lightning-dev 13:08 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-jskjygkuvqgyyotr] has joined #lightning-dev 13:12 -!- Emcy [~Emcy@unaffiliated/emcy] has joined #lightning-dev 13:13 -!- Emcy_ [~Emcy@unaffiliated/emcy] has quit [Ping timeout: 248 seconds] 13:18 -!- jb55 [~jb55@208.98.200.100] has joined #lightning-dev 13:36 -!- alreadylate [~textual@m77-218-245-66.cust.tele2.se] has quit [] 14:01 -!- jb55 [~jb55@208.98.200.100] has quit [Ping timeout: 252 seconds] 14:19 -!- jb55 [~jb55@208.98.200.100] has joined #lightning-dev 14:26 -!- jb55 [~jb55@208.98.200.100] has quit [Ping timeout: 248 seconds] 14:33 -!- jb55 [~jb55@208.98.200.100] has joined #lightning-dev 14:44 -!- jb55 [~jb55@208.98.200.100] has quit [Ping timeout: 260 seconds] 14:44 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 248 seconds] 14:45 -!- riclas [riclas@72.210.189.46.rev.vodafone.pt] has joined #lightning-dev 15:00 -!- geezas [uid253218@gateway/web/irccloud.com/x-ijhjckixupzcvwcb] has quit [Quit: Connection closed for inactivity] 15:08 -!- riclas [riclas@72.210.189.46.rev.vodafone.pt] has quit [Remote host closed the connection] 15:08 -!- riclas [riclas@72.210.189.46.rev.vodafone.pt] has joined #lightning-dev 15:23 -!- Emcy [~Emcy@unaffiliated/emcy] has quit [Ping timeout: 248 seconds] 15:29 -!- Cogito_Ergo_Sum [~Myself@unaffiliated/cogito-ergo-sum/x-7399460] has quit [] 15:30 -!- Emcy [~Emcy@unaffiliated/emcy] has joined #lightning-dev 15:31 -!- alanc_ [~chatzilla@109.255.196.64] has joined #lightning-dev 15:38 -!- meshcollider [uid246294@gateway/web/irccloud.com/x-jskjygkuvqgyyotr] has quit [Quit: Connection closed for inactivity] 15:40 -!- alanc_ [~chatzilla@109.255.196.64] has quit [Ping timeout: 268 seconds] 16:07 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 16:33 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 16:39 -!- StopAndDecrypt [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has quit [Changing host] 16:39 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has joined #lightning-dev 17:13 -!- jtimon [~quassel@164.31.134.37.dynamic.jazztel.es] has joined #lightning-dev 17:19 -!- alreadylate [~textual@c-250e71d5.153-1-64736c10.cust.bredbandsbolaget.se] has joined #lightning-dev 17:50 -!- alreadylate [~textual@c-250e71d5.153-1-64736c10.cust.bredbandsbolaget.se] has quit [] 17:53 -!- StopAndDecrypt_ [~StopAndDe@c-73-248-248-9.hsd1.nj.comcast.net] has joined #lightning-dev 17:54 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has quit [Ping timeout: 240 seconds] 18:36 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-zsdsiuacpisdsfhx] has quit [Quit: Connection closed for inactivity] 18:41 -!- alreadylate [~textual@c-250e71d5.153-1-64736c10.cust.bredbandsbolaget.se] has joined #lightning-dev 19:35 -!- alreadylate [~textual@c-250e71d5.153-1-64736c10.cust.bredbandsbolaget.se] has quit [] 19:36 -!- alanc_ [~chatzilla@109.255.196.64] has joined #lightning-dev 19:44 -!- alanc_ [~chatzilla@109.255.196.64] has quit [Ping timeout: 268 seconds] 20:17 -!- riclas [riclas@72.210.189.46.rev.vodafone.pt] has quit [Ping timeout: 268 seconds] 20:20 -!- tombusby [~tombusby@gateway/tor-sasl/tombusby] has quit [Ping timeout: 248 seconds] 20:25 -!- tombusby [~tombusby@gateway/tor-sasl/tombusby] has joined #lightning-dev 20:37 -!- kbgg_ [Elite20763@gateway/shell/elitebnc/x-zmhlxmhgoqkkvafu] has joined #lightning-dev 23:12 -!- alanc_ [~chatzilla@109.255.196.64] has joined #lightning-dev 23:28 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Quit: cryptosoap] 23:29 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #lightning-dev