--- Log opened Thu Apr 29 00:00:40 2021 00:32 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Remote host closed the connection] 00:32 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 00:43 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 00:50 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 268 seconds] 01:01 -!- mrostecki [mrostecki@nat/suse/x-gvvqrsvungacyatw] has quit [Quit: WeeChat 1.8] 01:11 -!- opsec_x122 [~opsec_x12@44-25-143-42.ip.hamwan.net] has quit [Ping timeout: 265 seconds] 01:11 -!- opsec_x12 [~opsec_x12@44-25-143-42.ip.hamwan.net] has joined #c-lightning 01:44 -!- vincenzopalazzo [~vincenzop@host-79-18-34-139.retail.telecomitalia.it] has joined #c-lightning 02:08 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has left #c-lightning [] 02:08 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has joined #c-lightning 02:30 -!- liberliver [~Thunderbi@46.101.127.98] has joined #c-lightning 02:36 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 02:44 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 02:44 -!- rusty1 [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 02:50 -!- rusty1 [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 246 seconds] 03:20 -!- mrostecki [mrostecki@nat/suse/x-qunzagdczmwaveyc] has joined #c-lightning 03:34 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 03:58 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 04:03 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 04:07 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 04:13 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 04:17 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 04:51 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 04:51 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 05:08 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 246 seconds] 06:54 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 08:19 -!- grubles [~user@gateway/tor-sasl/grubles] has quit [Remote host closed the connection] 08:19 -!- grubles [~user@gateway/tor-sasl/grubles] has joined #c-lightning 08:20 < unixb0y> 👋 08:30 -!- ghost43_ [~daer@gateway/tor-sasl/daer] has quit [Quit: Leaving] 08:30 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #c-lightning 10:24 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has left #c-lightning [] 10:24 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has joined #c-lightning 10:56 <@niftynei> rusty: is there a way to peek at a message on a fd without removing it? 10:56 <@niftynei> it'd be nice to be able to check if we've got any errors coming in from master while we're polling the peer (in some cases) 10:57 <@niftynei> but i don't want to process any incoming messages unless they're very specific "peer poll punching" types 10:57 <@niftynei> (failure, memleak) 10:58 < jasan> niftynei: pselect() or select() maybe? (man 2 select) 10:59 < jasan> nope 10:59 < jasan> this is not doing multiplexing 11:00 -!- vincenzopalazzo [~vincenzop@host-79-18-34-139.retail.telecomitalia.it] has quit [Ping timeout: 246 seconds] 11:00 -!- vincenzopalazzo [~vincenzop@host-87-20-90-42.retail.telecomitalia.it] has joined #c-lightning 11:07 < jasan> would that (reading a message from a fd without removing it) be equivalent of reading from a FIFO? 11:12 < jasan> one could surely read from fd and then fill the fd with the same it had read (while maybe locking so that no other input gets into the fd?) 11:13 * jasan is just daydreaming, no practical examples yet 11:13 < jasan> But https://www.systutorials.com/docs/linux/man/3p-FD_SET/ mentions multiplexing and is related to above-mentioned select() 11:29 < jasan> A practical example would be: 11:29 < jasan> cd /tmp 11:29 < jasan> mkdir teest 11:29 < jasan> cd teest 11:29 < jasan> mkfifo fifo1 11:29 < jasan> mkfifo fifo2 11:29 < jasan> echo test > fifo1 11:29 < jasan> tee fifo2 < fifo1 11:30 < jasan> ;; 11:42 < jasan> niftynei: To answer your original question (even though /me is not rusty) I think that no, it is not possible to peek at a message on a fd without removing it. 11:57 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Ping timeout: 240 seconds] 12:09 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #c-lightning 12:31 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has quit [Ping timeout: 276 seconds] 12:37 -!- jonatack [jon@gateway/vpn/airvpn/jonatack] has quit [Ping timeout: 252 seconds] 12:38 -!- jonatack [jon@gateway/vpn/airvpn/jonatack] has joined #c-lightning 12:43 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has joined #c-lightning 13:18 -!- Ademan [~ademan@47.185.84.39] has joined #c-lightning 13:35 < Ademan> Is there any documentation for how c-lightning routes payments, or do I just need to dig into the source? 14:12 < jasan> Ademan: That could be in the Lightning Network documentation. See https://lightning.network. c-lightning should just implement the protocol. 14:12 < jasan> For example https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md#failure-messages 14:13 < Ademan> jasan: huh thanks, I thought I had read it was implementation specific, I guess it must have been out of date info 14:16 < Ademan> "The route is constructed by the origin node, which knows the public keys of each intermediate node and of the final node." hrm I think this is the step *after* what I'm interested in (how do they select the intermediate nodes) 14:18 < Ademan> I didn't even check BOLT because I had read it was implementation specific, maybe it's in here after all 14:18 < jasan> Ademan: If it says it is impl. specific than it should be so and I am wrong. Just see the source. I do not think there is any English-described way of what is happening under the hood of lightningd. 14:20 < Ademan> well I read the implementation specific part from an article from 2019 or 2018 so it could also be out of date. I'll check out the source, I probably should anyways heh 14:20 < jasan> I wish I could help more, but am not so deep in understanding c-lightning source yet. 14:20 < Ademan> np, you're still deeper than me haha 14:21 < jasan> :) 14:52 -!- jasan [~jasan@tunnel625336-pt.tunnel.tserv1.bud1.ipv6.he.net] has quit [Quit: Good night!] 14:56 -!- vincenzopalazzo [~vincenzop@host-87-20-90-42.retail.telecomitalia.it] has quit [Quit: Leaving] 15:00 -!- grubles [~user@gateway/tor-sasl/grubles] has quit [Remote host closed the connection] 15:00 -!- grubles [~user@gateway/tor-sasl/grubles] has joined #c-lightning 15:27 -!- WKNiGHT [sid41664@gateway/web/irccloud.com/x-zqcrmzcupgvarnwj] has quit [Quit: Connection closed for inactivity] 16:47 -!- EndFiat [EndFiat@gateway/vpn/mullvad/endfiat] has quit [Ping timeout: 240 seconds] 16:49 -!- EndFiat [EndFiat@gateway/vpn/mullvad/endfiat] has joined #c-lightning 17:02 -!- belcher_ [~belcher@unaffiliated/belcher] has joined #c-lightning 17:05 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 252 seconds] 17:07 -!- belcher_ is now known as belcher 17:11 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 17:43 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 252 seconds] 18:31 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has left #c-lightning [] 18:31 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-tcmhyidyotayoduh] has joined #c-lightning 19:32 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 21:14 -!- rny [~rny@gateway/tor-sasl/renlord] has quit [Remote host closed the connection] 22:54 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 23:26 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Remote host closed the connection] 23:27 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #c-lightning --- Log closed Fri Apr 30 00:00:41 2021