summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-07-10 13:08:53 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-07-10 13:08:53 +0200
commit109a4a5aa1393da6241e479d13bce6d8c37b3275 (patch)
tree1034b1cf5b87d042de603286b63d5439f7844311 /src/exchangedb/test_exchangedb.c
parent8f6b8dbe97181de6deced776f68e3ac30e3834fc (diff)
downloadexchange-109a4a5aa1393da6241e479d13bce6d8c37b3275.tar.gz
exchange-109a4a5aa1393da6241e479d13bce6d8c37b3275.tar.bz2
exchange-109a4a5aa1393da6241e479d13bce6d8c37b3275.zip
KYC DB methods: store a wire transfer.
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 8b3486b4..5be7ecb7 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -361,7 +361,25 @@ kcs (void *cls,
uint8_t kyc_checked,
uint64_t merchant_serial_id)
{
- GNUNET_break (0);
+
+ struct TALER_EXCHANGEDB_Session *session = cls;
+ struct TALER_Amount amount;
+
+
+ TALER_amount_get_zero (CURRENCY,
+ &amount);
+ FAILIF
+ (GNUNET_OK != plugin->insert_kyc_event (NULL,
+ session,
+ merchant_serial_id,
+ &amount));
+ FAILIF
+ (GNUNET_OK != plugin->insert_kyc_event (NULL,
+ session,
+ merchant_serial_id,
+ &amount));
+ drop:
+ return;
}
/**
@@ -2215,13 +2233,12 @@ run (void *cls)
session,
"payto://mock",
&kcs,
- NULL));
+ session));
FAILIF (GNUNET_OK !=
plugin->unmark_kyc_merchant (NULL,
session,
"payto://mock"));
-
plugin->preflight (plugin->cls,
session);