pull down to refresh

Has anyone done testing with hardforks for LN? If not, we might need to build a test suite for this.
you first :)
reply
If that means "no", then sure, I'll reserve time.
reply
It could be fun testing, but not sure how. Maybe creating a dummy testnet network and open a bunch of channels on it then fork it and see what happen...
It could be messy because by forking you must create a new type of address, but the contract signed previously for the LN channel is with an old address. So idk, will change also the address? I do not have such technical expertise, but will be interesting to see.
reply
Yes i was thinking scripting it completely on regtest
reply
that would be interesting for me to know. I've been playing with Zeus and Electrum on testnet, both have obvious limitations. For what I know is possible to run LND in testnet locally, not sure how though.
reply
I'll work on setting up a framework with LND and regtest.
Maybe it is doable to just extend the Core python test framework to also orchestrate the lightning side. Will have to study it a bit.
reply
100 sats \ 1 reply \ @DarthCoin 15h
You could use mutinynet with that lnd. Just edit the config file to point to that testing network. Then you will need to fork it. The thing is that you will need to simulate or run some various LN nodes on those both chsins.
reply
Mutinynet is a signet though - not sure how I'd fork that. Regtest is open like mainnet/testnet (and it can be just restarted and redone / reproduced for cheap)
What's the need to hardfork? This term is overused lately...
reply
To me there is none; never has been. BCH didn't have to be a hardfork, that was just egos overestimating their own importance. But in today's environment some people have a hardon for hardforking. Some even write BIPs, to confiscate coin or to confiscate jpegs. It will always be contentious.
No matter which camp forks first, it would be good to have a set of tested methods to maintain channels in the face of adversity, no matter who the fork originates from. We know that channels are vulnerable because you have an ongoing relation with a counterparty, not just a single event like paying someone straight.
We need to understand how to deal with it, before a hardfork happens, so that we can be properly prepared. We're already late in the game and I was hoping there was just some repo out there with someone gaming this out in a set of reproducable scripts. But if there is none, then it shall be made.
reply