summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-21 05:02:31 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-21 05:02:31 -0500
commit28a63d95d33873018ec347cf48f2cf1784c8b92e (patch)
tree8745cfbba70ac8319ee6e4870f876ca0fff05671 /src
parentdf0816296129012b76d8e4ee2608969af1240abc (diff)
downloadmerchant-28a63d95d33873018ec347cf48f2cf1784c8b92e.tar.gz
merchant-28a63d95d33873018ec347cf48f2cf1784c8b92e.tar.bz2
merchant-28a63d95d33873018ec347cf48f2cf1784c8b92e.zip
pos_key in template is set. Test case is also good
Diffstat (limited to 'src')
-rw-r--r--src/backenddb/merchant-0004.sql17
-rw-r--r--src/outs1
-rw-r--r--src/testing/testing_api_cmd_testserver.c1
3 files changed, 18 insertions, 1 deletions
diff --git a/src/backenddb/merchant-0004.sql b/src/backenddb/merchant-0004.sql
index 3864f37d..696e60fc 100644
--- a/src/backenddb/merchant-0004.sql
+++ b/src/backenddb/merchant-0004.sql
@@ -106,6 +106,7 @@ COMMENT ON COLUMN merchant_pending_webhooks.body
IS 'Body of the webhook';
+
ALTER TABLE merchant_kyc
ADD COLUMN aml_decision INT4 NOT NULL DEFAULT (0);
@@ -113,6 +114,22 @@ COMMENT ON COLUMN merchant_kyc.aml_decision
IS 'current AML decision for our account at the exchange';
+
+ALTER TABLE merchant_orders
+ ADD COLUMN pos_key VARCHAR;
+
+COMMENT ON COLUMN merchant_orders.pos_key
+ IS 'encoded based key which is used for the verification of payment';
+
+
+
+ALTER TABLE merchant_contract_terms
+ ADD COLUMN pos_key VARCHAR;
+
+COMMENT ON COLUMN merchant_contract_terms.pos_key
+ IS 'enconded based key which is used for the verification of payment';
+
+
COMMIT;
diff --git a/src/outs b/src/outs
new file mode 100644
index 00000000..43f43caa
--- /dev/null
+++ b/src/outs
@@ -0,0 +1 @@
+valgrind: .libs/test_merchant_api_cs: No such file or directory
diff --git a/src/testing/testing_api_cmd_testserver.c b/src/testing/testing_api_cmd_testserver.c
index 5d0a5ad6..ee32fd77 100644
--- a/src/testing/testing_api_cmd_testserver.c
+++ b/src/testing/testing_api_cmd_testserver.c
@@ -284,7 +284,6 @@ testserver_cleanup (void *cls,
GNUNET_free (rc->http_method);
GNUNET_free (rc->header);
GNUNET_free (rc->body);
- GNUNET_free (rc);
}
GNUNET_array_grow (ser->rcs,
ser->rcs_length,