From 99a844e52e48bb6e8ed63fc737d6ee62b3f0baf6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 9 May 2022 13:25:10 +0200 Subject: check reserve balance after p2p merges --- src/exchangedb/drop0001-exchange-part.sql | 2 +- src/exchangedb/exchange-0001-part.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/drop0001-exchange-part.sql b/src/exchangedb/drop0001-exchange-part.sql index 82b51769..9e5dcd11 100644 --- a/src/exchangedb/drop0001-exchange-part.sql +++ b/src/exchangedb/drop0001-exchange-part.sql @@ -78,7 +78,7 @@ DROP TABLE IF EXISTS wad_out_entries CASCADE; DROP TABLE IF EXISTS wads_in CASCADE; DROP TABLE IF EXISTS wad_in_entries CASCADE; DROP TABLE IF EXISTS partner_accounts CASCADE; - +DROP TABLE IF EXISTS purse_actions CASCADE; DROP FUNCTION IF EXISTS exchange_do_withdraw; DROP FUNCTION IF EXISTS exchange_do_withdraw_limit_check; diff --git a/src/exchangedb/exchange-0001-part.sql b/src/exchangedb/exchange-0001-part.sql index f5276d0b..c2b3855a 100644 --- a/src/exchangedb/exchange-0001-part.sql +++ b/src/exchangedb/exchange-0001-part.sql @@ -3136,8 +3136,8 @@ THEN -- The taler-exchange-router will take care of this. UPDATE purse_actions SET action_date=0 --- "immediately" - ,partner_serial_id=NEW.partner_serial_id - WHERE purse_pub=NEW.purse_pub; + ,partner_serial_id=my_partner_serial_id + WHERE purse_pub=in_purse_pub; ELSE -- This is a local reserve, update balance immediately. UPDATE reserves -- cgit v1.2.3