Closed 1xstj closed 11 months ago
We should use sqlx with the tokio runtime feature enabled. We should also only enable sqlite
, since, this will allow us to atomically make transactions, ensuring that if we ever ran out of disk space in the future, we wouldn't have a corrupt state.
The additional benefit to this is that we will be able to store data in a structured way.
This is relevant for the POST hook of a completed TSS job (phase 2 tss)
Currently if the DB of a running node is curropted, it loses the current active key and is unable to sign proposals, if enough of these nodes lose keys then the testnet might stall.
Example :
Goal :
Related issue : #716