--- Log opened Mon Mar 08 00:00:51 2021 01:11 -!- harrigan [~harrigan@ptr-93-89-242-235.ip.airwire.ie] has quit [Ping timeout: 264 seconds] 01:13 -!- harrigan [~harrigan@ptr-93-89-242-235.ip.airwire.ie] has joined #c-lightning 02:43 -!- rubikputer [~rubikpute@ip72-192-27-21.ri.ri.cox.net] has quit [Ping timeout: 256 seconds] 02:43 -!- openoms [~quassel@cpc115064-stok20-2-0-cust91.1-4.cable.virginm.net] has joined #c-lightning 02:46 < openoms> Hi all! Started to play with c-lightning on signet which gave me too much confidence and managed to lock some funds in a stale channel on mainnet. 02:46 < openoms> there si this clear warning at: https://lightning.readthedocs.io/lightning-fundchannel_complete.7.html : Broadcasting transaction before can lead to unrecoverable loss of funds. 02:49 < openoms> my issue became that between comverting from a signed PSBT to a rawTXN the TXID has changed. So broadcasted a channel funding transaction which went the to the right address, but the txid was not which used for lightning-fundchannel_complete 02:49 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 02:51 < openoms> unfortunately the transaction has confirmed quickly so now I need to find a way to recover it. 02:51 < openoms> The transaction is originating from an external joinmarket wallet and I have access to all the private keys (of the jm wallet and my CL node) and can contact the lightning peer (happend to be Fulmo - running c-lightning also) 02:53 < openoms> Had witnessed similar recoveries with LND before using Oliver Gugger's chantools: https://github.com/guggero/chantools/blob/master/doc/chantools_signrescuefunding.md#chantools-signrescuefunding , but not aware of a similar tool for c-lightning 02:57 < openoms> it is very likely that I would need some manual assitance to recover this almost 2M sats and would be grateful for a direct contact or directions. 03:00 -!- openoms [~quassel@cpc115064-stok20-2-0-cust91.1-4.cable.virginm.net] has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.] 03:01 -!- openoms [~quassel@91.132.136.76] has joined #c-lightning 03:04 -!- jonatack [~jon@37.166.102.70] has joined #c-lightning 03:22 -!- Scotty70 [47bc48bc@pool-71-188-72-188.cmdnnj.fios.verizon.net] has quit [Quit: Connection closed] 04:56 -!- jtimon [~quassel@90.166.158.146.dynamic.jazztel.es] has joined #c-lightning 05:43 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has left #c-lightning [] 05:43 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has joined #c-lightning 06:28 < openoms> as I understand basicly I need to figure it out how to construct the transaction which spends out of the stale channel. I should be able to sign it with my c-lightning node and pass it over to the peer (Fulmo) to sign as well before broadcasting. 06:30 < openoms> Has someone done this before? 06:35 < darosior> openoms: never did that and some users lost nontrival amounts with this footgun. Didn't answer as i can't dig with you right now (sorry :/) but you may want to tweak https://github.com/ElementsProject/lightning/blob/master/tools/hsmtool.c to generate the funding pubkeys (and corresponding privates) used in the Script, maybe if you get Fulmo to do 06:35 < darosior> that as well (not sure they have all the information in DB though...) you could create a spending transaction form the multisig 06:51 < queip> we need an LN channel 06:52 < queip> where to report bugs across wallets? neither of which is c-lightning btw 06:56 < darosior> #lightning-dev ? i think it's fine to discuss not-implem-specific stuff thre 07:25 < openoms> thank you for the hint @darosior! Will try too look into it further. 07:58 -!- jasan [~j@n.bublina.eu.org] has joined #c-lightning 08:12 -!- ksedgwic [~ksedgwic@192-184-130-48.fiber.dynamic.sonic.net] has quit [Quit: Lost terminal] 08:15 -!- ksedgwic [~ksedgwic@192-184-130-48.fiber.dynamic.sonic.net] has joined #c-lightning 08:16 -!- ghost43_ [~daer@gateway/tor-sasl/daer] has quit [Remote host closed the connection] 08:16 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #c-lightning 08:23 < openoms> @darosior what I would need to be able to contsruct the unsigned send from the multisig is both funding pubkeys, right? Are those not stored in the database of the peer funding the channel (so me)? 08:24 < darosior> openoms: basepoints are derived from channel informations stored in the database, from these basepoints we derive keys to be use in Scripts 08:29 < openoms> @darosior not sure if this is good news or not. Clearly peers would need to generate thr private keys individually, but wouldn't the pubkeys be shared (and then stored in my database)? 08:30 < darosior> No it's not in your case as it extremely complicates the recovery process.. Were you running with log-level = debug ? 08:30 < darosior> If so we *might* have logged the funding pubkey used 08:32 < openoms> yes! log-level=debug, will search it through 08:33 < darosior> Then if you can find this pubkey, you can hack around with hsmtool to derive the pubkey and checked against the logged one if you got the derivation right. If it was right you can then ask fulmo to run it with the information on their side (hopefully they have your channel in db) and then you could check against the onchain Script by creating a 08:33 < darosior> 2of2 P2WSH and see if the hashes match 08:34 < darosior> If they do you could then ask them to sign your transaction with the private key 08:35 < darosior> This process is pretty unsure as i didn't look into it for a while and based on a lot of luck but hey 2M sats may be worth it 08:35 < darosior> If you are struggling with hsmtool i could give it a shot this week.. 08:39 < openoms> thanks, it does not help that I am completely new to c-lightning, but will try 08:39 < openoms> Where does it create a logfile to start with? 08:39 < darosior> /log 08:40 < darosior> (with the network being part of the datadir) 08:41 < openoms> I have only these files there: 08:41 < openoms> /mnt/hdd/app-data/.lightning/bitcoin $ ls 08:41 < openoms> gossip_store hsm_secret lightningd.sqlite3 lightning-rpc 08:50 < darosior> Huh weird, i was pretty sure we created a default log file called 'log' 08:52 < openoms> ligthning-cli getlog debug 08:52 < openoms> has an output at least 08:54 < openoms> but it is only a couple of lines of gossip 08:55 < darosior> Did you run without daemon? 08:55 < darosior> i mean with daemon=false 08:56 < darosior> Ok, checked the latest patches and we don't create a default log file but we require it to be set if daemon=true 08:56 < darosior> Therefore if you didn't set it... It means you don't have it 08:58 < openoms> bad. I have the pending channel though os I guess Fulmo should have it too 08:58 < openoms> "CHANNELD_AWAITING_LOCKIN:Funding needs 3 more confirmations for lockin." 08:59 < openoms> to clarify again the funds are confirmed on the correct address with the agreed amounbt, but the txid was not which I've put in lightning-fundchannel_complete 09:22 -!- HelloShitty [~psysc0rpi@bl20-171-222.dsl.telepac.pt] has joined #c-lightning 09:28 < openoms> I also have a funding PSBT (and a rawtx) 10:12 < warren> Is there a simple way to temporarily stop trying to route through one of my peers? 10:38 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has quit [Ping timeout: 265 seconds] 11:16 < jasan> /topic Next meeting here @8PM UTC Monday Mar 8 2021 (in 44 minutes from now) 11:21 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has joined #c-lightning 11:26 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 264 seconds] 11:50 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 11:54 < rusty> Hello everyone! 11:57 < jasan> rusty: Hello! 11:57 < openoms> Hi! 11:57 < rusty> https://meet.jit.si/CLightning-Open-Meeting for those who want to join us for a chat! 12:18 -!- mryandao [~mryandao@gateway/tor-sasl/mryandao] has quit [Remote host closed the connection] 12:18 -!- mryandao [~mryandao@gateway/tor-sasl/mryandao] has joined #c-lightning 12:20 -!- belcher [~belcher@unaffiliated/belcher] has joined #c-lightning 12:23 < jasan> https://www.btctimes.com/news/the-community-effort-that-gives-a-voice-to-the-bitcoin-white-paper 12:23 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has quit [Ping timeout: 260 seconds] 12:33 -!- harrigan [~harrigan@ptr-93-89-242-235.ip.airwire.ie] has quit [Ping timeout: 260 seconds] 12:36 < jasan> cdecker: I am writing now some short issue regarding the doubly-loaded plugins. 12:39 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 256 seconds] 12:40 < jasan> cdecker: https://github.com/ElementsProject/lightning/issues/4415 12:40 -!- kabaum [~kabaum@h-13-35.A163.priv.bahnhof.se] has joined #c-lightning 12:41 -!- jasan [~j@n.bublina.eu.org] has quit [Quit: Bye!] 13:02 <@cdecker> Thanks jasan ^^ 13:04 < openoms> Thank you for taking the time to discuss my issue. 13:04 < openoms> Write the details down here: https://github.com/ElementsProject/lightning/issues/4416 13:04 < openoms> please let me know what else I can do 13:23 -!- jonatack_ [~jon@37.166.102.70] has joined #c-lightning 13:24 -!- jonatack [~jon@37.166.102.70] has quit [Read error: Connection reset by peer] 13:49 -!- jonatack__ [~jon@37.167.56.19] has joined #c-lightning 13:52 -!- jonatack__ [~jon@37.167.56.19] has quit [Client Quit] 13:52 -!- jonatack [~jon@37.167.56.19] has joined #c-lightning 13:52 -!- jonatack_ [~jon@37.166.102.70] has quit [Ping timeout: 260 seconds] 14:01 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has left #c-lightning [] 14:02 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has joined #c-lightning 14:07 -!- jonatack [~jon@37.167.56.19] has quit [Ping timeout: 245 seconds] 14:17 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Quit: jb55] 14:18 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 14:47 -!- t0mix_ [~t0mix@95-105-186-195.dynamic.orange.sk] has joined #c-lightning 15:21 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Ping timeout: 268 seconds] 15:27 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 15:34 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 16:53 -!- queip [~queip@unaffiliated/rezurus] has quit [Ping timeout: 240 seconds] 18:05 -!- belcher_ [~belcher@unaffiliated/belcher] has joined #c-lightning 18:09 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 265 seconds] 18:41 -!- az0re [~az0re@gateway/tor-sasl/az0re] has joined #c-lightning 19:02 < warren> Is there already a way to specify outgoing IPv4 connections go through one proxy while onion goes through a different proxy? 19:03 < warren> My actual goal is to make outgoing IPv4 connections but from a different IP address away from where my backend server is hosted. 19:07 -!- az0re [~az0re@gateway/tor-sasl/az0re] has quit [Quit: Leaving] 19:11 < warren> (and not through tor exit nodes) 19:50 -!- cltrbreak_MAD2 [~ctrlbreak@159.2.165.130] has joined #c-lightning 19:54 -!- andytosh1 [~apoelstra@unaffiliated/andytoshi] has joined #c-lightning 19:55 -!- jtimon_ [~quassel@90.166.158.146.dynamic.jazztel.es] has joined #c-lightning 19:56 -!- berndj-blackout [~berndj@ns2.linksynergy.co.za] has joined #c-lightning 19:59 -!- Netsplit *.net <-> *.split quits: lio17, andytoshi, berndj, dongcarl, ctrlbreak_MAD, alko89, jtimon, @niftynei 19:59 -!- berndj-blackout is now known as berndj 20:00 -!- Netsplit over, joins: lio17 20:15 -!- niftynei [~niftynei@104.131.77.55] has joined #c-lightning 20:15 -!- mode/#c-lightning [+o niftynei] by ChanServ 20:52 -!- mryandao_ [~mryandao@gateway/tor-sasl/mryandao] has joined #c-lightning 20:53 -!- mryandao [~mryandao@gateway/tor-sasl/mryandao] has quit [Remote host closed the connection] 20:58 -!- mryandao_ is now known as mryandao 21:26 -!- rubikputer [~rubikpute@paphos.tr3y.io] has joined #c-lightning 21:26 -!- gleb [~gleb@178.150.137.228] has joined #c-lightning 21:34 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 245 seconds] 21:36 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 268 seconds] 21:38 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 22:04 -!- jasan [~j@n.bublina.eu.org] has joined #c-lightning 22:04 < jasan> HelloShitty: https://github.com/ElementsProject/lightning/issues/4415 22:04 -!- jtimon_ [~quassel@90.166.158.146.dynamic.jazztel.es] has quit [Ping timeout: 260 seconds] 22:14 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has left #c-lightning [] 22:14 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-wunnawwznmddxkzr] has joined #c-lightning 22:35 -!- k3tan [~pi@gateway/tor-sasl/k3tan] has quit [Remote host closed the connection] 22:35 -!- k3tan [~pi@gateway/tor-sasl/k3tan] has joined #c-lightning 23:29 -!- jonatack [~jon@37.166.110.136] has joined #c-lightning 23:49 -!- jonatack [~jon@37.166.110.136] has quit [Read error: Connection reset by peer] 23:50 -!- jonatack [~jon@37.166.110.136] has joined #c-lightning --- Log closed Tue Mar 09 00:00:51 2021