diff --git a/src/exchangedb/exchange_do_delete_purse.sql b/src/exchangedb/exchange_do_delete_purse.sql index 3d493e624..1e6540ecf 100644 --- a/src/exchangedb/exchange_do_delete_purse.sql +++ b/src/exchangedb/exchange_do_delete_purse.sql @@ -54,7 +54,13 @@ INSERT INTO purse_deletion ,purse_sig) VALUES (in_purse_pub - ,in_purse_sig); + ,in_purse_sig) +ON CONFLICT DO NOTHING; + +IF NOT FOUND +THEN + RETURN; +END IF; -- store purse decision INSERT INTO purse_decision