Add a function to undo the effects of a tx on the wallet.
Undo a transaction effects if it doesn't propagate.