Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
How would one test the impact on the Lightning Network of a network split on the base layer (the blockchain progressing on two separate branches with each branch unaware of the other competing branch)?
Do any Lightning Network spec or implementation test frameworks currently allow you to simulate a network split on the base layer for testing?
This was asked by DrNo_21M on Twitter and has been paraphrased.
Christian Decker answered this on Twitter.
pyln-testing which is used for testing in c-lightning uses a proxy in front of bitcoind allowing you to mock responses. This allows you to get any node stuck at a height while the others get new blocks. A cooperative close on a smaller base layer subnetwork followed by network unification and chain tip rollback can also be tested on c-lightning but without long chain splits given how unlikely they are to happen (in normal times).
Jamal James added that Polar can simulate this scenario (use 3 bitcoind nodes then take the middle one offline, mine blocks on the other two, this results in a chain split).
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments