diff options
Diffstat (limited to 'src/bank-lib')
| -rw-r--r-- | src/bank-lib/bank_api_parse.c | 25 | ||||
| -rw-r--r-- | src/bank-lib/fakebank.c | 6 | 
2 files changed, 3 insertions, 28 deletions
| diff --git a/src/bank-lib/bank_api_parse.c b/src/bank-lib/bank_api_parse.c index 5423d01b..38401954 100644 --- a/src/bank-lib/bank_api_parse.c +++ b/src/bank-lib/bank_api_parse.c @@ -98,27 +98,6 @@ TALER_BANK_auth_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg,      { NULL, TALER_BANK_AUTH_NONE     }    };    char *method; -  unsigned long long fakebank_port; - -  if (GNUNET_OK == -      GNUNET_CONFIGURATION_get_value_number (cfg, -                                             section, -                                             "FAKEBANK_PORT", -                                             &fakebank_port)) -  { -    auth->method = TALER_BANK_AUTH_FAKEBANK; -    auth->details.fakebank.fb_port = (uint16_t) fakebank_port; -    // FIXME: we should not hardcode exchange account number "2" -    GNUNET_asprintf (&auth->wire_gateway_url, -                     "http://localhost:%u/2/", -                     (unsigned int) fakebank_port); - -    GNUNET_log (GNUNET_ERROR_TYPE_INFO, -                "Using fakebank %s on port %u\n", -                auth->wire_gateway_url, -                (unsigned int) fakebank_port); -    return GNUNET_OK; -  }    if (GNUNET_OK !=        GNUNET_CONFIGURATION_get_value_string (cfg, @@ -187,8 +166,6 @@ TALER_BANK_auth_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg,          auth->method = TALER_BANK_AUTH_BASIC;          GNUNET_free (method);          return GNUNET_OK; -      case TALER_BANK_AUTH_FAKEBANK: -        GNUNET_assert (0);        }      }    } @@ -222,8 +199,6 @@ TALER_BANK_auth_free (struct TALER_BANK_AuthenticationData *auth)        auth->details.basic.password = NULL;      }      break; -  case TALER_BANK_AUTH_FAKEBANK: -    break;    }    GNUNET_free (auth->wire_gateway_url);  } diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 15b21ba3..fbd554ae 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -315,9 +315,9 @@ TALER_FAKEBANK_check_credit (struct TALER_FAKEBANK_Handle *h,                "Did not find matching transaction!\nI have:\n");    check_log (h);    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -              "I wanted:\n%llu -> %llu (%s) with subject %s (CREDIT)\n", -              (unsigned long long) want_debit, -              (unsigned long long) want_credit, +              "I wanted:\n%s -> %s (%s) with subject %s (CREDIT)\n", +              want_debit, +              want_credit,                TALER_amount2s (want_amount),                TALER_B2S (reserve_pub));    return GNUNET_SYSERR; | 
