--- Day changed Mon Dec 19 2016 00:25 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 00:39 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 00:58 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 250 seconds] 01:07 -!- jannes [~jannes@178.132.211.90] has joined #lightning-dev 01:44 -!- dabura667 [~dabura667@45.32.233.97] has quit [Ping timeout: 265 seconds] 01:47 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 01:57 -!- sstone [~sstone@3.46-14-84.ripe.coltfrance.com] has joined #lightning-dev 02:09 -!- JackH [~laptop@79-73-185-145.dynamic.dsl.as9105.com] has joined #lightning-dev 02:43 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Quit: Quitte] 02:47 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 264 seconds] 02:54 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 02:55 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has quit [Quit: This computer has gone to sleep] 02:56 -!- jtimon [~quassel@231.110.132.37.dynamic.jazztel.es] has joined #lightning-dev 02:56 -!- AaronvanW [~ewout@unaffiliated/aaronvanw] has quit [Read error: Connection reset by peer] 03:05 -!- AaronvanW [~ewout@unaffiliated/aaronvanw] has joined #lightning-dev 03:26 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 03:28 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 265 seconds] 03:40 -!- jtimon [~quassel@231.110.132.37.dynamic.jazztel.es] has quit [Ping timeout: 258 seconds] 03:41 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 04:22 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 04:35 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 252 seconds] 05:06 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 05:08 -!- Grouver [~grouver@53535FBF.cm-6-4b.dynamic.ziggo.nl] has joined #lightning-dev 05:08 -!- sstone [~sstone@3.46-14-84.ripe.coltfrance.com] has quit [Remote host closed the connection] 05:20 < ThomasV> ok, I believe lightningd is running normally, but I don't see any peers. I have set port=8334. netstat shows one tcp6 connection, no tcp 05:21 < cdecker> Well, lightningd doesn't yet open random connections on startup 05:21 < ThomasV> how does it work? 05:21 < cdecker> If you'd like to test the functionality you'll have to open a connection to a public node 05:22 < cdecker> For example http://159.203.218.14:8000/ accepts connections to 159.203.218.14 port 6331 05:22 < ThomasV> ok 05:24 < cdecker> If you have some testcoins on your bitcoind you can use the contrib/lightning-open-channel script to open a channel 05:25 < ThomasV> I don't. I compiled without wallet 05:25 < cdecker> (or use my wallet UI: https://github.com/cdecker/kugelblitz) 05:26 < cdecker> Well you could always have a faucet pay to the address given by "daemon/lightning-cli newaddr" 05:26 < ThomasV> yeah, will do that 05:26 < cdecker> Followed by a "daemon/lightning-cli connect " 05:27 < cdecker> It's a bit more work but should get you going ^^ 05:27 < cdecker> Never tried funding directly from a faucet, let me know how it works 05:27 < cdecker> Otherwise let me know the `newaddr` result I can probably spare a few testcents :-) 05:28 < ThomasV> btw, is Amiko Pay still being developed? 05:29 < cdecker> Yep, CJP is very much involved in the Lightning spec work 05:30 < ThomasV> asking because last public commit is 6 month old 05:34 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has joined #lightning-dev 05:38 < ThomasV> cdecker: is cjp on this channel? 05:41 < cdecker> Not sure 05:43 < ThomasV> .. or generally on irc ? 05:47 -!- sstone [~sstone@3.46-14-84.ripe.coltfrance.com] has joined #lightning-dev 05:56 < ThomasV> cdecker: the amount sent by testnet is too large :) 05:56 < ThomasV> cdecker: 2N9RGqBHadvVdyq2J8LPgRMREyhnfVHsJmf 05:57 < ThomasV> cdecker: why does the syntax require a full hex tx, and not txid:index 06:04 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Quit: laurentmt] 06:16 < cdecker> Hm 06:17 < cdecker> The daemon currently does not have a full view of the blockchain, and the bitcoind that it is watching may not have the TX ready 06:17 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has quit [Quit: This computer has gone to sleep] 06:18 < cdecker> I'll send 0.04 to the address above if that's ok with you 06:18 < ThomasV> thanks 06:20 < cdecker> Oh darn, my bitcoind needs to sync 06:20 < cdecker> My laptop crashed recently, sorry about that 06:20 < ThomasV> :) 06:21 < ThomasV> cdecker: can I export the privkey corresponding to the output from newaddr? 06:21 < ThomasV> is it generated deterministically? 06:24 < cdecker> It should be in the database in the lightning-dir 06:24 < cdecker> It's an sqlite3 database so that should be possible 06:27 < ThomasV> I see 06:37 < cdecker> Ok, the testnet catchup is taking awfully long, I'll install an SPV testnet client on my phone and send from there :-) 06:45 < cdecker> ThomasV: coins incoming ^^ 06:46 < cdecker> TX Hash: 10d844fd6f94696d4330413a685d758e888c0d47a0c989e4d61bc64956d94412 06:46 < ThomasV> cdecker: thanks! 06:52 < cdecker> NP, let me know how it works out ^^ 06:56 -!- moli [~molly@unaffiliated/molly] has quit [Read error: Connection reset by peer] 06:57 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 256 seconds] 07:16 -!- [b__b] [~b__b]@ec2-54-85-45-223.compute-1.amazonaws.com] has quit [Remote host closed the connection] 07:17 -!- [b__b] [~b__b]@ec2-54-85-45-223.compute-1.amazonaws.com] has joined #lightning-dev 07:32 -!- wraithm [~textual@205.197.160.100] has joined #lightning-dev 07:47 -githubby:#lightning-dev- [lightning] cdecker opened pull request #105: Implementation of the gossip protocol (master...gossip) https://github.com/ElementsProject/lightning/pull/105 07:51 -!- Grouver [~grouver@53535FBF.cm-6-4b.dynamic.ziggo.nl] has quit [Quit: Leaving] 07:57 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 08:18 -!- afk11 [~afk11@unaffiliated/afk11] has quit [Ping timeout: 264 seconds] 08:23 -!- afk11 [~afk11@176.61.67.182] has joined #lightning-dev 08:23 -!- afk11 [~afk11@176.61.67.182] has quit [Changing host] 08:23 -!- afk11 [~afk11@unaffiliated/afk11] has joined #lightning-dev 08:29 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 265 seconds] 08:32 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Remote host closed the connection] 08:32 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 08:37 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 258 seconds] 08:44 -!- moli [~molly@unaffiliated/molly] has joined #lightning-dev 08:59 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 09:02 -lightningrfc:#lightning-dev- [lightning-rfc] sstone opened pull request #64: BOLT 3: fix fee computations (master...fix-fees) https://github.com/lightningnetwork/lightning-rfc/pull/64 09:02 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 09:33 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has joined #lightning-dev 09:37 -!- JackH [~laptop@79-73-185-145.dynamic.dsl.as9105.com] has quit [Ping timeout: 246 seconds] 09:54 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 250 seconds] 10:01 -!- BonyM1 [~BonyM-I@ua-83-227-211-4.cust.bredbandsbolaget.se] has quit [Ping timeout: 265 seconds] 10:16 -!- BonyM1 [~BonyM-I@ua-83-227-211-4.cust.bredbandsbolaget.se] has joined #lightning-dev 10:21 -!- sstone [~sstone@3.46-14-84.ripe.coltfrance.com] has quit [Quit: Leaving] 10:37 -!- jannes [~jannes@178.132.211.90] has quit [Quit: Leaving] 11:16 -!- molz [~molly@unaffiliated/molly] has joined #lightning-dev 11:16 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 11:18 -!- moli [~molly@unaffiliated/molly] has quit [Ping timeout: 256 seconds] 11:39 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 12:37 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 265 seconds] 13:21 -!- btcbrother [~sailfish@HSI-KBW-149-172-38-102.hsi13.kabel-badenwuerttemberg.de] has joined #lightning-dev 13:24 -!- BonyM1 [~BonyM-I@ua-83-227-211-4.cust.bredbandsbolaget.se] has quit [Ping timeout: 250 seconds] 13:36 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has quit [Quit: This computer has gone to sleep] 13:38 -!- BonyM1 [~BonyM-I@ua-83-227-211-4.cust.bredbandsbolaget.se] has joined #lightning-dev 14:02 -!- jtimon [~quassel@231.110.132.37.dynamic.jazztel.es] has joined #lightning-dev 14:23 -!- P4Titan [~user@204.187.100.19] has joined #lightning-dev 14:23 < P4Titan> adiabat: elooo? 14:41 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 264 seconds] 15:14 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 15:19 -!- donaloconnor [~donal@79.97.203.192] has joined #lightning-dev 15:21 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Quit: laurentmt] 15:21 -!- P4Titan [~user@204.187.100.19] has quit [Ping timeout: 260 seconds] 15:26 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 15:42 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has quit [Read error: Connection reset by peer] 15:43 -!- rusty21 [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 16:07 < adiabat> P4Titan: yeah? you've logged off... 16:10 -githubby:#lightning-dev- [lightning] rustyrussell created pr-103 (+4 new commits): https://git.io/v1bYE 16:10 -githubby:#lightning-dev- lightning/pr-103 8e4628c Lucas Betschart: Add libbase58 as git submodule... 16:10 -githubby:#lightning-dev- lightning/pr-103 c9ec9e3 Lucas Betschart: Update INSTALL.md libbase58 16:10 -githubby:#lightning-dev- lightning/pr-103 c725de2 Rusty Russell: libbase58: add autosubmodule rule, move depends to bitcoin/Makefile... 16:24 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell pushed 1 new commit to master: https://git.io/v1b34 16:24 -lightningrfc:#lightning-dev- lightning-rfc/master 69b8767 Olaoluwa Osuntokun: BOLT04: specify per-hop-payload format (#56)... 16:28 -!- wraithm [~textual@205.197.160.100] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 16:41 -!- donaloconnor [~donal@79.97.203.192] has quit [Remote host closed the connection] 16:42 -!- AaronvanW [~ewout@unaffiliated/aaronvanw] has quit [Read error: Connection reset by peer] 16:55 * rusty21 wakes up, reads log. 16:55 < rusty21> roasbeef: You *only* include your own updates once you get revoke-and-ack. 16:55 -!- rusty21 is now known as rusty 16:56 < rusty> roasbeef: so in your scenario, Bob must have sent some changes otherwise his SIG is a noop, which is invalid. 16:58 < rusty> roasbeef: order would be Alice: Add Add, Alice: commit sig (covering those adds on Bob), Bob: revoke_and_ack (covering those adds on Bob), Bob: commit_sig (covering those adds on Alice), Alice: revoke_and_ack (covering those adds on Alice). 16:59 < rusty> roasbeef: That's 1.5 RTT, which is optimal. Bob can choose to *always* commit_sig after that revoke_and_ack if it has pending changes, of course. 16:59 < rusty> roasbeef: index-with-sig has the problem that now you can apply my updates before I've told you to. 16:59 < rusty> roasbeef: which means we can't do fast fail in future. 17:18 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 17:18 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 17:19 < roasbeef> that's a simplification of what I described, my scenario was meant to illustrate that using that exchange then Alice needs to trigger an additioanl state transition after the initial exchange 17:20 < rusty2> No, Bob does. 17:20 < roasbeef> while with index-with-sig, the state can be sync'd in a single exchange 17:20 -!- rusty2 is now known as rusty 17:21 < rusty> roasbeef: Yes, so with index-with-sig, Alice would Add Add, Bob could immediately Sig (including your two) without waiting for Alice to Sig. 17:21 < rusty> roasbeef: no, it cannot. 17:21 < roasbeef> well in that case it's Alice's responsiblity to trigger a new update, since hers won't ahve been included 17:21 < rusty> roasbeef: you ALWYAS need 1.5 RTT 17:21 < rusty> roasbeef: must get sig before sending revocation. 17:21 < roasbeef> yes, I'm saying that you'd need an additoianal 1.5RTT to resync with the exchagne I described if you don't have index-with-sig 17:22 < rusty> roasbeef: you mean Alice: Add Add, Bob: Add Add ? 17:22 < rusty> roasbeef: ah, wait, re-reading. 17:22 < rusty> roasbeef: yes, your "Alice: Add Add, Bob: Add Sig" has Alice not committed yet. Her call. 17:22 < roasbeef> an alternative: Alice: Add Add, Bob: Add Sig 17:23 < rusty> roasbeef:but there's no extra RTT. Alice can still "Sig" immediately if she wants. 17:23 < roasbeef> yeh, i'm just attempting to illustrate that things are "more inefficeint" w/o index-with-sig 17:23 < rusty> roasbeef: ... except that they're *not* if you want fast-fail in future! 17:24 < rusty> roasbeef: (Now, I'm not sure that we do, but if we did...) 17:25 < rusty> roasbeef: for fast-fail you need the ability to "unadd" before sending sig, and that doesn't work if the other side can scoop up your add before you've committed to it. 17:27 < roasbeef> another scenario that'll require an additonal update regardless of what bob does: Alice: Add, Add, Sig, Add 17:27 < rusty> roasbeef: BTW (separate thread!), I think you've got a valid point on sphinx retransmission issues. In the case where a payment has failed, it's pretty safe for a node to try replaying to do traffic analysis, so we really should remember that case (still leaks path data, maybe not all if it failed halfway). But it turns out that we have a natural limit on how long to remember: the ctlv_timeout. 17:28 < roasbeef> imo, i don't think we again anything by making the state machine more ambigious (not inclding sig indexes), to be seen if we want unadd 17:29 < roasbeef> the node that caused the payment failure would relpay? 17:29 < rusty> roasbeef: no, we can't unadd if we allow the other side to commit to something we haven't committed to (which is why your optimization works). 17:29 < rusty> roasbeef: no, upstream node sees failure return, now pretty sure it can go to town on replay. 17:31 < rusty> roasbeef: but I realized that the ctlv_timeout applied for anti-replay on successful payments, too. So we should specify that nodes MUST NOT forward duplicate onions, but MAY reject them as duplicates OR reject them because CTLV too low. 17:31 < rusty> ie. remember them until you wouldn't accept that HTLC anyway. 17:39 -!- aalex [~aalex@64.187.177.58] has quit [Read error: Connection reset by peer] 17:40 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 17:42 -!- aalex [~aalex@64.187.177.58] has quit [Read error: Connection reset by peer] 17:43 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 17:49 -!- aalex [~aalex@64.187.177.58] has quit [Ping timeout: 264 seconds] 18:00 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 18:07 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-syebcjtglsnlloom] has quit [Quit: Connection closed for inactivity] 18:07 < roasbeef> rusty: ahh, I see what you're saying. Yeh, so then we can employ the timestamped secret back log but with an _exact_ value for the garbage collection time. When cdecker and I were first tossing around the idea of timestamped logs, we didn't have a good value for how long to keep em around for 18:08 < rusty> roasbeef: yeah! I think it's all win,and cleans up any nasty traffic attacks. I'll patch now... 18:08 < rusty> s/patch/PR/ 18:46 < rusty> roasbeef: not convinced on the latency win. There is one *if* Bob sends sig as soon as he gets an add. But AFAICT it's a straight latency-throughput tradeoff. 18:51 -!- lightningbot [~supybot@2400:8901::f03c:91ff:febb:bbc1] has quit [K-Lined] 18:55 < rusty> roasbeef: Hmm, should LE nonce be "0x000000000100000000000000" or "0x010000000000000000000000"? Fabrice and I differ... 19:05 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell opened pull request #65: BOLT 1: recommend full tx in error pkt if signature fails. (master...sigerror-should-contain-tx) https://git.io/v1bBQ 19:40 -!- shesek [~shesek@bzq-84-110-177-74.red.bezeqint.net] has joined #lightning-dev 19:53 -64MAASOCD:#lightning-dev- [lightning-rfc] rustyrussell pushed 1 new commit to master: https://git.io/v1bEq 19:53 -64MAASOCD:#lightning-dev- lightning-rfc/master 6e99d24 Rusty Russell: BOLT 7: allow multiple address descriptors. (Take II) (#60)... 19:53 -7JTAAO0YE:#lightning-dev- [lightning-rfc] rustyrussell closed pull request #60: BOLT 7: allow multiple address descriptors. (Take II) (master...multiple-node-addresses) https://git.io/v1yUE 19:54 -!- wasi [~wasi@gateway/tor-sasl/wasi] has quit [Ping timeout: 245 seconds] 20:02 -!- wasi [~wasi@gateway/tor-sasl/wasi] has joined #lightning-dev 20:21 -!- PaulCapestany [~PaulCapes@2604:5500:17:2ea:b0e6:1d46:f6bf:f830] has quit [Quit: .] 20:23 -!- PaulCapestany [~PaulCapes@2604:5500:17:2ea:a818:fc66:cfb9:79dc] has joined #lightning-dev 20:43 -!- PaulCapestany [~PaulCapes@2604:5500:17:2ea:a818:fc66:cfb9:79dc] has quit [Quit: .] 20:45 -!- PaulCapestany [~PaulCapes@2604:5500:17:2ea:6589:2a23:c894:6301] has joined #lightning-dev 20:56 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 248 seconds] 21:21 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 23:11 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 23:12 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-zreizyygpqzmvcgg] has joined #lightning-dev 23:18 -!- akrmn [~akrmn@210.red-83-56-221.dynamicip.rima-tde.net] has quit [Ping timeout: 248 seconds] 23:22 -!- akrmn [~akrmn@219.red-79-153-138.dynamicip.rima-tde.net] has joined #lightning-dev 23:23 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has joined #lightning-dev 23:25 -!- arubi [~ese168@gateway/tor-sasl/ese168] has quit [Remote host closed the connection] 23:26 -!- jouke [~jouke@a83-163-42-163.adsl.xs4all.nl] has quit [Remote host closed the connection] 23:26 -!- jouke [~jouke@a83-163-42-163.adsl.xs4all.nl] has joined #lightning-dev 23:26 -!- arubi [~ese168@gateway/tor-sasl/ese168] has joined #lightning-dev 23:33 -!- rusty2 [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 265 seconds] 23:34 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 268 seconds] 23:42 -!- lclc__ [~lclc__@pub082136074188.dh-hfc.datazug.ch] has quit [Quit: This computer has gone to sleep] 23:57 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev