aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/exchange-0001-part.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-24 20:49:11 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-24 20:49:11 +0200
commitb4965db0d26a85787e1fd430e1591c50f8dd1279 (patch)
treefebdd6f7d2a60a8d96de9f56e999a7c1a930e53d /src/exchangedb/exchange-0001-part.sql
parentb671d6b25dd469c9065a28d4406f6883da83c4ea (diff)
downloadexchange-b4965db0d26a85787e1fd430e1591c50f8dd1279.tar.xz
-fix fieldnames, regenerated DBs
Diffstat (limited to 'src/exchangedb/exchange-0001-part.sql')
-rw-r--r--src/exchangedb/exchange-0001-part.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/exchangedb/exchange-0001-part.sql b/src/exchangedb/exchange-0001-part.sql
index 4785964de..9a5462161 100644
--- a/src/exchangedb/exchange-0001-part.sql
+++ b/src/exchangedb/exchange-0001-part.sql
@@ -2710,6 +2710,27 @@ END $$;
-- IS 'Checks that the partner exists, the purse has not been merged with a different reserve and that the purse is full. If so, persists the merge data. Caller MUST abort the transaction on failures so as to not persist data by accident.';
+CREATE OR REPLACE FUNCTION exchange_do_reserve_purse(
+ IN in_purse_pub BYTEA,
+ IN in_merge_sig BYTEA,
+ IN in_merge_timestamp INT8,
+ IN in_reserve_sig BYTEA,
+ IN in_purse_fee_val INT8,
+ IN in_purse_fee_frac INT8,
+ IN in_reserve_pub BYTEA,
+ OUT out_no_funds BOOLEAN,
+ OUT out_conflict BOOLEAN)
+LANGUAGE plpgsql
+AS $$
+BEGIN
+ -- FIXME: implement!
+ out_conflict=TRUE;
+ out_no_funds=TRUE;
+
+END $$;
+
+
+
CREATE OR REPLACE FUNCTION exchange_do_account_merge(
IN in_purse_pub BYTEA,
IN in_reserve_pub BYTEA,