aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-09 13:25:10 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-09 13:25:10 +0200
commit99a844e52e48bb6e8ed63fc737d6ee62b3f0baf6 (patch)
tree15656e1652059f00600f04b19f06c3658855afb3 /src/exchangedb
parent06bfbd9150e61a1b076175b22b27be4c88e058f3 (diff)
check reserve balance after p2p merges
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/drop0001-exchange-part.sql2
-rw-r--r--src/exchangedb/exchange-0001-part.sql4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/exchangedb/drop0001-exchange-part.sql b/src/exchangedb/drop0001-exchange-part.sql
index 82b51769a..9e5dcd11a 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 f5276d0b8..c2b3855a5 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