--- Day changed Tue Jun 12 2018 00:34 -!- bitonic-cjp [~bitonic-c@92-111-70-106.static.v4.ziggozakelijk.nl] has joined #c-lightning 02:02 -!- ebx [~ebx@unaffiliated/ebex] has joined #c-lightning 02:09 -!- cdecker [~cdecker@mail.snyke.net] has quit [Ping timeout: 245 seconds] 02:10 -!- cdecker [~cdecker@mail.snyke.net] has joined #c-lightning 02:10 -!- mode/#c-lightning [+o cdecker] by ChanServ 02:50 -!- Lightblock [uid302821@gateway/web/irccloud.com/x-ktrhpufsppgoguqz] has joined #c-lightning 02:50 < Lightblock> sorry if noob question 02:50 < Lightblock> I see that some of explorers set the channel id as 578483853744799745 02:51 < Lightblock> what is the decode algorithms that decodes this number into (blockHeight = 526128, txIndex = 706, outputIndex = 1) ? 03:02 < Lightblock> anyone? ) 03:41 < aj> Lightblock: looks like blockHeight*2**40 + txIndex*2**16 + outputIndex ? 03:42 < Lightblock> but what is the algorithm? 03:42 < Lightblock> how do you decode 578483853744799745 into short channel id? 03:45 < aj> that is the short channel id? you decode it as height=X >> 40; txIndex = (X>>16)&(0xFFFFFF); outputIndex = X&0xFFFF 03:47 < aj> https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#requirements <-- is the spec fwiw 03:49 < Lightblock> I simply wonder why for example on 1ml.com all the channels are displayed as 18-digits instead of blockheight txindex outputindex format? 03:49 < Lightblock> for example https://1ml.com/channel/570609151516409856 03:49 < Lightblock> what is the trick here? 03:54 < aj> there's no trick, they're just different ways of writing the same info 03:58 < Lightblock> I see, thanks, however still not clear how your formula works height=X >> 40; txIndex = (X>>16)&(0xFFFFFF); outputIndex = X&0xFFFF 03:58 < Lightblock> would be really thankful if you could show a decoding flow as simple calculation 03:58 < Lightblock> I am trying to use a simple Hexadecimal converter, but it does not make much sense still 03:59 < Lightblock> sorry, seems like I am figuring it out 04:14 -!- tiagotrs [~user@unaffiliated/tiagotrs] has joined #c-lightning 04:25 < aj> int("%x%06x%04x" % (518966, 1465, 0), 16) == 570609151516409856 04:25 < aj> def dec(x): return (x >> 40), ((x >> 16)&0xFFFFFF), (x&0xFFFF) 04:58 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has joined #c-lightning 06:13 -!- berndj [~berndj@197.242.93.82] has quit [Quit: ZNC - http://znc.in] 06:14 -!- berndj [~berndj@197.242.93.82] has joined #c-lightning 06:16 -!- tiagotrs [~user@unaffiliated/tiagotrs] has quit [Ping timeout: 268 seconds] 06:23 -!- Lightblock [uid302821@gateway/web/irccloud.com/x-ktrhpufsppgoguqz] has quit [Quit: Connection closed for inactivity] 06:54 -!- tiagotrs [~user@unaffiliated/tiagotrs] has joined #c-lightning 07:59 -!- tiagotrs [~user@unaffiliated/tiagotrs] has quit [Ping timeout: 268 seconds] 08:50 -!- grafcaps [~haroldbr@50.90.83.229] has quit [Ping timeout: 240 seconds] 09:02 -!- bitonic-cjp [~bitonic-c@92-111-70-106.static.v4.ziggozakelijk.nl] has quit [Quit: Leaving] 09:07 -!- tiagotrs [~user@p5DC46EDE.dip0.t-ipconnect.de] has joined #c-lightning 09:07 -!- tiagotrs [~user@p5DC46EDE.dip0.t-ipconnect.de] has quit [Changing host] 09:07 -!- tiagotrs [~user@unaffiliated/tiagotrs] has joined #c-lightning 09:07 -!- grafcaps [~haroldbr@104.137.194.255] has joined #c-lightning 10:30 -githubby:#c-lightning- [lightning] wythe opened pull request #1569: Improved JSON-RPC Parameter Processing (master...parse-params) https://git.io/vhrxU 10:48 -!- ctrlbreak [~ctrlbreak@142.162.42.47] has quit [Ping timeout: 264 seconds] 10:49 -!- ctrlbreak [~ctrlbreak@142.162.42.47] has joined #c-lightning 11:24 -!- spaced0ut [~spaced0ut@unaffiliated/spaced0ut] has quit [Remote host closed the connection] 12:08 -!- cubancorona [cubancoron@gateway/vpn/privateinternetaccess/cubancorona] has joined #c-lightning 12:19 -!- cubancorona [cubancoron@gateway/vpn/privateinternetaccess/cubancorona] has quit [Ping timeout: 240 seconds] 12:35 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has quit [Read error: Connection reset by peer] 12:37 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has joined #c-lightning 13:49 -githubby:#c-lightning- [lightning] rustyrussell opened pull request #1570: daemon: print version in crash backtrace. (master...version-in-backtrace) https://git.io/vhoGX 14:06 -!- tiagotrs [~user@unaffiliated/tiagotrs] has quit [Quit: Leaving] 14:19 -githubby:#c-lightning- [lightning] cdecker closed pull request #1570: daemon: print version in crash backtrace. (master...version-in-backtrace) https://git.io/vhoGX 17:35 -!- grafcaps [~haroldbr@104.137.194.255] has quit [Ping timeout: 264 seconds] 17:46 -!- grafcaps [~haroldbr@50.90.83.229] has joined #c-lightning 18:00 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has quit [Ping timeout: 276 seconds] 18:05 -githubby:#c-lightning- [lightning] rustyrussell opened pull request #1572: tests: reenable developer tests. (master...reenable-dev-tests) https://git.io/vhorM 19:03 -!- cubancorona [cubancoron@gateway/vpn/privateinternetaccess/cubancorona] has joined #c-lightning 19:03 -!- cubancorona [cubancoron@gateway/vpn/privateinternetaccess/cubancorona] has quit [Remote host closed the connection] 19:10 -!- booyah_ [~bb@193.25.1.157] has quit [Read error: Connection reset by peer] 19:11 -!- deusexbeer [~deusexbee@079-170-138-050-dynamic-pool-adsl.wbt.ru] has quit [Quit: Konversation terminated!] 19:30 -!- deusexbeer [~deusexbee@079-170-138-050-dynamic-pool-adsl.wbt.ru] has joined #c-lightning 20:00 -!- ebx [~ebx@unaffiliated/ebex] has quit [Remote host closed the connection] 20:08 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has joined #c-lightning 20:56 -!- dougsland [~douglas@c-73-234-93-65.hsd1.nh.comcast.net] has quit [Ping timeout: 256 seconds] 21:03 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has quit [Read error: Connection reset by peer] 21:04 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has joined #c-lightning 21:14 -!- grafcaps [~haroldbr@50.90.83.229] has quit [Ping timeout: 256 seconds] 22:18 -!- grafcaps [~haroldbr@50.90.83.229] has joined #c-lightning