smartnode icon indicating copy to clipboard operation
smartnode copied to clipboard

smartnode should clean up keys from failed deposits

Open jshufro opened this issue 2 years ago • 0 comments

image

basically, this is a land mine, and while it isn't smartnode's fault, if rocketpool node deposit exits with an error smartnode should delete the derived keys (but not decrement next_account).

This can be easily done with a defer that checks a bool that is only set on success, and if that bool is false, the keys are deleted

jshufro avatar Jul 19 '23 17:07 jshufro