diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-24 21:41:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-24 21:41:36 +0200 |
commit | fae146d1def6167b9fcc144c01ba37e6671cf159 (patch) | |
tree | 305ec8fb63de6a1457fba22272f00a123266a16a /src/authorization | |
parent | 365ee86e0b2a080f4184686e20b5ba3a33bed509 (diff) | |
download | anastasis-fae146d1def6167b9fcc144c01ba37e6671cf159.tar.gz anastasis-fae146d1def6167b9fcc144c01ba37e6671cf159.tar.bz2 anastasis-fae146d1def6167b9fcc144c01ba37e6671cf159.zip |
-more work on test_iban.sh
Diffstat (limited to 'src/authorization')
-rw-r--r-- | src/authorization/anastasis-helper-authorization-iban.c | 7 | ||||
-rw-r--r-- | src/authorization/iban.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/authorization/anastasis-helper-authorization-iban.c b/src/authorization/anastasis-helper-authorization-iban.c index d509c0e..4a14d05 100644 --- a/src/authorization/anastasis-helper-authorization-iban.c +++ b/src/authorization/anastasis-helper-authorization-iban.c @@ -216,6 +216,11 @@ history_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "End of list.\n"); GNUNET_assert (NULL == task); + if (test_mode) + { + GNUNET_SCHEDULER_shutdown (); + return GNUNET_OK; /* will be ignored anyway */ + } task = GNUNET_SCHEDULER_add_delayed (idle_sleep_interval, &find_transfers, NULL); @@ -240,7 +245,7 @@ history_cb (void *cls, details->wire_subject, &details->amount, details->debit_account_uri, - details->credit_account_uri, + credit_account_uri, details->execution_date); switch (qs) { diff --git a/src/authorization/iban.c b/src/authorization/iban.c index 9547790..f2bb211 100644 --- a/src/authorization/iban.c +++ b/src/authorization/iban.c @@ -14,7 +14,7 @@ extract_code (const char *wire_subject, unsigned long long c; const char *pos; - if (0 != + if (NULL == strcasestr (wire_subject, "anastasis")) { |