--- Log opened Sat May 21 00:00:29 2022 00:06 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 00:57 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has joined #c-lightning 01:05 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has quit [Ping timeout: 272 seconds] 01:59 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 244 seconds] 02:04 -!- kexkey [~kexkey@178.249.214.10] has quit [Ping timeout: 244 seconds] 02:05 -!- kexkey [~kexkey@178.249.214.19] has joined #c-lightning 02:08 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 03:37 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 272 seconds] 03:45 -!- jonatack [~jonatack@user/jonatack] has quit [Ping timeout: 260 seconds] 03:57 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 04:02 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 244 seconds] 04:15 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 04:41 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Remote host closed the connection] 04:42 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 05:09 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Ping timeout: 240 seconds] 05:11 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 05:25 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has joined #c-lightning 05:25 < Guest51> Although I much prefer IRC and Matrix to Telegram, can someone who is an admit in the #lightningd telegram group help figure why I am blocked and unblock me? 05:25 < Guest51> *admin 05:49 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has quit [Ping timeout: 252 seconds] 05:54 < AdityaSharma[m]> I am writing a plugin (in C) which needs to check (on startup) if a file exists and if it doesn't, it'll send a request (jsonrpc_request_start) and then create the file and fill the data from the returned response. 05:54 < AdityaSharma[m]> But I can't put in jsonrpc_request_start in the init (in plugin_main) function, so what should I do? Is their any event notification I can subscribe to? 06:02 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has joined #c-lightning 06:58 < vincenzopalazzo> Aditya Sharma: if I remember correct you should import the `#include ` 06:59 < vincenzopalazzo> oh wait I read another think! 07:07 < vincenzopalazzo> Ok! I got it! I had this problem too, but I never had time to search into it, but should be possible call rpc method inside the init callback. A solution that I usually use it use a timer and call a function after 10/20 seconds but this is an hack :) not a solution 07:11 -!- csknk [~csknk@88.87.164.26] has joined #c-lightning 07:21 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 07:21 -!- befalou__ [~befalou@gateway/tor-sasl/befalou] has quit [Remote host closed the connection] 07:23 -!- befalou__ [~befalou@gateway/tor-sasl/befalou] has joined #c-lightning 07:42 < AdityaSharma[m]> Yep that is what I was thinking as well. I tried calling it inside init but it gives out some error..or if their is any event that is published on startup, that could help as well.. 07:48 < vincenzopalazzo> Mh no there is any event, because we should be able to call methods inside init. However what is your error? 08:22 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Remote host closed the connection] 08:24 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 08:27 -!- csknk [~csknk@88.87.164.26] has quit [Ping timeout: 246 seconds] 08:32 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has quit [Ping timeout: 252 seconds] 08:35 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 272 seconds] 08:37 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 08:59 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Remote host closed the connection] 09:00 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 09:00 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 09:05 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Ping timeout: 240 seconds] 09:05 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 272 seconds] 09:10 -!- jonatack [~jonatack@user/jonatack] has joined #c-lightning 09:17 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has joined #c-lightning 09:18 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 09:38 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Ping timeout: 240 seconds] 09:49 -!- jarthur [~jarthur@user/jarthur] has quit [Ping timeout: 272 seconds] 09:52 -!- jarthur [~jarthur@user/jarthur] has joined #c-lightning 09:56 -!- jarthur [~jarthur@user/jarthur] has quit [Quit: jarthur] 10:35 < AdityaSharma[m]> umm gives out... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/62c9863e6a602774aab5f837080df538ccb20509) 10:36 < AdityaSharma[m]> Sorry I was away from my machine😅 10:44 < vincenzopalazzo> "Sorry I was away from my machine..." <- don't worry :) do you have the code somewhere? just to have a clear idea of what is the problem 10:45 -!- litch [~litch@2605:a601:aa3d:3a00:b0dd:24a7:b88b:b65] has quit [Ping timeout: 260 seconds] 10:50 < AdityaSharma[m]> Haven't put up the code on GitHub yet(plugin is too buggy at this point)..Although its <30 lines, as follows... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/b3de2ce8a0ba9e7f50bb816e1293414db27577a6) 10:53 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 10:57 < vincenzopalazzo> can you share also the small stacktrace that lightnind produce? 11:00 < AdityaSharma[m]> 0x562fccbff8c3 send_backtrace... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/f72483dfa32183517dbb329085b8c61c9cfa4795) 11:01 < vincenzopalazzo> lovely thanks! I will put together the pieces and I will try to help :) 11:02 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 252 seconds] 11:03 < AdityaSharma[m]> Thank you so much! Btw do you have any example of plugin where you start the RPC call inside init or after a certain timeperiod?? 11:07 < vincenzopalazzo> maybe this one https://github.com/ElementsProject/lightning/blob/master/plugins/fetchinvoice.c#L1907 11:07 < vincenzopalazzo> maybe rpc_scan is what you are searching for? 11:13 < vincenzopalazzo> maybe rpc_scan is too much tricky if you need to parse all the response in a complex way! this looks like a good function to get only a few info 11:13 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 11:16 < AdityaSharma[m]> Hmm looks like this could help... I just need to get this array from this... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6318d7606310cc60f26b20d72f15d90cc273b427) 11:18 < AdityaSharma[m]> then encrypting these streams (simply by using libsodium) and putting it in a file.. 11:27 < vincenzopalazzo> Ah ok, maybe there is some built in function where you can take the raw array and parse it later? 11:28 < vincenzopalazzo> but not sure if there is a json_to_arr or json_to_tok, but maybe another good method to have is rpc_call that looks like that 11:29 < AdityaSharma[m]> Tried `json_for_each_arr` and it does the job 11:29 < vincenzopalazzo> AdityaSharma[m]: Amazing! 11:29 < vincenzopalazzo> problem solved :) 11:31 < AdityaSharma[m]> So basically every time the plugin starts it needs to check if the file is there or not, and on every open-channel and channel-state change event we need to update the file...I was having issue with the part where I need to do initial check but looks like rpc_scan will help, Thanks to you! 11:33 < vincenzopalazzo> Yep! it looks like that it make the job! maybe because it is an sync call, so the init command will wait the answer! 12:05 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has joined #c-lightning 12:26 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Remote host closed the connection] 12:26 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 12:39 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has quit [Quit: Client closed] 13:15 -!- kexkey [~kexkey@178.249.214.19] has quit [Ping timeout: 246 seconds] 13:24 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Remote host closed the connection] 13:26 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 13:31 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 260 seconds] 13:32 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 13:40 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 248 seconds] 13:40 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 13:55 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Remote host closed the connection] 13:59 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 14:03 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 260 seconds] 14:03 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has joined #c-lightning 14:10 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 14:38 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 244 seconds] 14:50 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 16:59 -!- Guest51 [~Guest51@d118-75-81-3.try.wideopenwest.com] has quit [Ping timeout: 252 seconds] 17:02 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Remote host closed the connection] 17:02 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 17:13 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Remote host closed the connection] 17:13 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has joined #c-lightning 17:16 -!- litch_ [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has joined #c-lightning 17:16 -!- litch_ [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has quit [Remote host closed the connection] 17:16 -!- litch_ [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has joined #c-lightning 17:18 -!- litch [~litch@2605:a601:aa3d:3a00:c116:e2d1:f1c2:8d07] has quit [Ping timeout: 272 seconds] 17:51 -!- litch_ [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has quit [Remote host closed the connection] 17:52 -!- litch [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has joined #c-lightning 17:53 -!- litch_ [~litch@2605:a601:aa3d:3a00:c957:dd13:9e87:ae68] has joined #c-lightning 17:54 -!- litch__ [~litch@2605:a601:aa3d:3a00:e16f:381d:7962:d9da] has joined #c-lightning 17:55 -!- litch___ [~litch@2605:a601:aa3d:3a00:b52b:2e0:940b:5bed] has joined #c-lightning 17:56 -!- litch [~litch@2605:a601:aa3d:3a00:e068:4b3a:6654:9208] has quit [Ping timeout: 244 seconds] 17:57 -!- litch [~litch@2605:a601:aa3d:3a00:b450:6999:c557:c016] has joined #c-lightning 17:58 -!- litch_ [~litch@2605:a601:aa3d:3a00:c957:dd13:9e87:ae68] has quit [Ping timeout: 244 seconds] 17:58 -!- litch____ [~litch@2605:a601:aa3d:3a00:f17a:39b3:ed79:68b6] has joined #c-lightning 17:58 -!- litch__ [~litch@2605:a601:aa3d:3a00:e16f:381d:7962:d9da] has quit [Ping timeout: 244 seconds] 17:59 -!- litch_ [~litch@2605:a601:aa3d:3a00:1469:ca12:e7b0:dc44] has joined #c-lightning 17:59 -!- litch___ [~litch@2605:a601:aa3d:3a00:b52b:2e0:940b:5bed] has quit [Ping timeout: 244 seconds] 18:01 -!- litch__ [~litch@2605:a601:aa3d:3a00:98c:ebd4:e7be:9400] has joined #c-lightning 18:01 -!- litch [~litch@2605:a601:aa3d:3a00:b450:6999:c557:c016] has quit [Ping timeout: 244 seconds] 18:02 -!- litch____ [~litch@2605:a601:aa3d:3a00:f17a:39b3:ed79:68b6] has quit [Ping timeout: 244 seconds] 18:02 -!- litch [~litch@2605:a601:aa3d:3a00:c881:cb79:3d74:96ba] has joined #c-lightning 18:04 -!- litch___ [~litch@2605:a601:aa3d:3a00:114c:ed4c:cdcb:8020] has joined #c-lightning 18:04 -!- litch_ [~litch@2605:a601:aa3d:3a00:1469:ca12:e7b0:dc44] has quit [Ping timeout: 272 seconds] 18:05 -!- litch_ [~litch@2605:a601:aa3d:3a00:75e1:9248:d675:8563] has joined #c-lightning 18:06 -!- litch____ [~litch@2605:a601:aa3d:3a00:b46c:adca:9845:bb8a] has joined #c-lightning 18:06 -!- litch__ [~litch@2605:a601:aa3d:3a00:98c:ebd4:e7be:9400] has quit [Ping timeout: 272 seconds] 18:06 -!- litch__ [~litch@2605:a601:aa3d:3a00:179:75c4:7c15:8154] has joined #c-lightning 18:06 -!- litch [~litch@2605:a601:aa3d:3a00:c881:cb79:3d74:96ba] has quit [Ping timeout: 244 seconds] 18:07 -!- litch [~litch@2605:a601:aa3d:3a00:6dfb:2e9c:8285:8a2d] has joined #c-lightning 18:08 -!- litch___ [~litch@2605:a601:aa3d:3a00:114c:ed4c:cdcb:8020] has quit [Ping timeout: 244 seconds] 18:09 -!- litch_ [~litch@2605:a601:aa3d:3a00:75e1:9248:d675:8563] has quit [Ping timeout: 244 seconds] 18:10 -!- litch____ [~litch@2605:a601:aa3d:3a00:b46c:adca:9845:bb8a] has quit [Ping timeout: 244 seconds] 18:11 -!- litch__ [~litch@2605:a601:aa3d:3a00:179:75c4:7c15:8154] has quit [Ping timeout: 244 seconds] 18:42 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has joined #c-lightning 18:57 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has quit [Ping timeout: 276 seconds] 18:57 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 19:07 -!- litch [~litch@2605:a601:aa3d:3a00:6dfb:2e9c:8285:8a2d] has quit [Remote host closed the connection] 19:07 -!- litch [~litch@2605:a601:aa3d:3a00:6dfb:2e9c:8285:8a2d] has joined #c-lightning 19:12 -!- litch [~litch@2605:a601:aa3d:3a00:6dfb:2e9c:8285:8a2d] has quit [Ping timeout: 272 seconds] 20:25 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has joined #c-lightning 22:26 -!- rusty [~rusty@14-201-152-82.tpgi.com.au] has quit [Ping timeout: 244 seconds] --- Log closed Sun May 22 00:00:30 2022