bitcoin-dev-project / sim-ln

Payment activity generator for the lightning network
MIT License
63 stars 28 forks source link

sim_network: Add unit tests + squash bugs #175

Closed carlaKC closed 7 months ago

carlaKC commented 8 months ago

This PR adds coverage for our simulated network and (unsurprisingly) squashes some bugs:

Removal bugs not caught in original testing because we evenly distribute liquidity, so didn't run into any payment failure - going to set liquidity to zero and re-run for a while to see if anything falls apart.

carlaKC commented 8 months ago

Thanks for the review @enigbe! Updated to address most feedback, left some of the test setup as-is for the sake of simplicity (can always come back and improve as is required).