mimblewimble / mwixnet

Implementation of the Mimblewimble CoinSwap proposal.
Apache License 2.0
9 stars 18 forks source link

Recover swap requests after process interruption #5

Closed scilio closed 2 years ago

scilio commented 2 years ago

The first mwixnet node keeps all unfinished swap requests in volatile memory. Since CoinSwaps will only occur a few times per day, a process interruption could result in lots of swap requests being lost. We should instead serialize all unfinished swaps to disk and automatically recover them when an interrupted process is restored.

https://github.com/mimblewimble/mwixnet/pull/3#discussion_r899390687