diff options
Diffstat (limited to 'src/auditor')
-rw-r--r-- | src/auditor/Makefile.am | 5 | ||||
-rw-r--r-- | src/auditor/taler-auditor-sync.c | 11 | ||||
-rwxr-xr-x | src/auditor/test-sync.sh | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/auditor/Makefile.am b/src/auditor/Makefile.am index cdf644d14..634026ab4 100644 --- a/src/auditor/Makefile.am +++ b/src/auditor/Makefile.am @@ -193,8 +193,11 @@ check_SCRIPTS = \ test-sync.sh .NOTPARALLEL: -# Disabled for now: need working wallet first! +# revocation test disabled for now: need working wallet first! # TESTS = $(check_SCRIPTS) +TESTS = \ + test-auditor.sh \ + test-sync.sh EXTRA_DIST = \ taler-auditor.in \ diff --git a/src/auditor/taler-auditor-sync.c b/src/auditor/taler-auditor-sync.c index 17c4da467..4b9595c6c 100644 --- a/src/auditor/taler-auditor-sync.c +++ b/src/auditor/taler-auditor-sync.c @@ -91,6 +91,7 @@ struct Table static struct Table tables[] = { { .rt = TALER_EXCHANGEDB_RT_DENOMINATIONS}, { .rt = TALER_EXCHANGEDB_RT_DENOMINATION_REVOCATIONS}, + { .rt = TALER_EXCHANGEDB_RT_WIRE_TARGETS}, { .rt = TALER_EXCHANGEDB_RT_RESERVES}, { .rt = TALER_EXCHANGEDB_RT_RESERVES_IN}, { .rt = TALER_EXCHANGEDB_RT_RESERVES_CLOSE}, @@ -202,20 +203,16 @@ transact (void) src->lookup_serial_by_table (src->cls, tables[i].rt, &tables[i].end_serial); - if (0 > - src->commit (src->cls)) - return GNUNET_SYSERR; + src->rollback (src->cls); if (GNUNET_OK != - dst->start (src->cls, + dst->start (dst->cls, "lookup dst serials")) return GNUNET_SYSERR; for (unsigned int i = 0; ! tables[i].end; i++) dst->lookup_serial_by_table (dst->cls, tables[i].rt, &tables[i].start_serial); - if (0 > - dst->commit (dst->cls)) - return GNUNET_SYSERR; + dst->rollback (dst->cls); for (unsigned int i = 0; ! tables[i].end; i++) { struct Table *table = &tables[i]; diff --git a/src/auditor/test-sync.sh b/src/auditor/test-sync.sh index a69201a8a..af6f4553e 100755 --- a/src/auditor/test-sync.sh +++ b/src/auditor/test-sync.sh @@ -16,7 +16,7 @@ echo -n "." psql talercheck-in < auditor-basedb.sql >/dev/null 2> /dev/null echo -n "." -taler-auditor-sync -s test-sync-in.conf -d test-sync-out.conf -t +~/bin/taler-auditor-sync -s test-sync-in.conf -d test-sync-out.conf -t # cs_nonce_locks excluded: no point for table in denominations denomination_revocations wire_targets reserves reserves_in reserves_close reserves_out auditors auditor_denom_sigs exchange_sign_keys signkey_revocations extensions extension_details known_coins refresh_commitments refresh_revealed_coins refresh_transfer_keys deposits refunds wire_out aggregation_tracking wire_fee recoup recoup_refresh |