deso-protocol / backend

HTTP API for a DeSo node
https://docs.deso.org
MIT License
133 stars 88 forks source link

Fix empty verification map on error #539

Open erwin-willems opened 5 months ago

erwin-willems commented 5 months ago

A few times a month, our Verified Users data disappear. I think this is because of a retrieval error from badgerdb. This fix is to make sure the Verified Users are not overwritten with an empty map.

I think error handling on txn.Get needs to be reviewed