From 5c0cbba761fe956e899670b89d2cbebc7d21fbaf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Apr 2022 13:18:37 +0200 Subject: -sketch implementation of exchange_do_reserve_purse() --- src/exchangedb/exchange-0001-part.sql | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/exchangedb/exchange-0001-part.sql') diff --git a/src/exchangedb/exchange-0001-part.sql b/src/exchangedb/exchange-0001-part.sql index ab80be965..d17e5a837 100644 --- a/src/exchangedb/exchange-0001-part.sql +++ b/src/exchangedb/exchange-0001-part.sql @@ -2773,6 +2773,18 @@ END IF; out_conflict=FALSE; +-- Store account merge signature. +INSERT INTO account_merges + (reserve_pub + ,reserve_sig + ,purse_pub) + VALUES + (in_reserve_pub + ,in_reserve_sig + ,in_purse_pub); + + + -- Charge reserve for purse creation. -- FIXME: Use different type of purse -- signature in this case, so that we @@ -2860,7 +2872,7 @@ CREATE OR REPLACE FUNCTION exchange_do_account_merge( LANGUAGE plpgsql AS $$ BEGIN - -- FIXME + -- FIXME: function/API is dead! Do DCE? END $$; -- cgit v1.2.3