allow skipping of denom fees check

This commit is contained in:
Florian Dold 2020-01-18 13:52:10 +01:00
parent ccb8869344
commit 4993863c4c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 42 additions and 33 deletions

View File

@ -149,7 +149,7 @@ TALER_BANK_auth_free (struct TALER_BANK_AuthenticationData *auth)
break; break;
} }
GNUNET_free (auth->wire_gateway_url); GNUNET_free (auth->wire_gateway_url);
auth->wire_gateway_rul = NULL; auth->wire_gateway_url = NULL;
} }

View File

@ -136,6 +136,8 @@ TALER_EXCHANGE_verify_coin_history (const struct
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (NULL != dk)
{
/* check that deposit fee matches our expectations from /keys! */ /* check that deposit fee matches our expectations from /keys! */
TALER_amount_ntoh (&fee, TALER_amount_ntoh (&fee,
&dr.deposit_fee); &dr.deposit_fee);
@ -149,6 +151,7 @@ TALER_EXCHANGE_verify_coin_history (const struct
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
}
add = GNUNET_YES; add = GNUNET_YES;
} }
else if (0 == strcasecmp (type, else if (0 == strcasecmp (type,
@ -188,6 +191,8 @@ TALER_EXCHANGE_verify_coin_history (const struct
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (NULL != dk)
{
/* check that melt fee matches our expectations from /keys! */ /* check that melt fee matches our expectations from /keys! */
TALER_amount_ntoh (&fee, TALER_amount_ntoh (&fee,
&rm.melt_fee); &rm.melt_fee);
@ -201,6 +206,7 @@ TALER_EXCHANGE_verify_coin_history (const struct
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
}
add = GNUNET_YES; add = GNUNET_YES;
} }
else if (0 == strcasecmp (type, else if (0 == strcasecmp (type,
@ -253,6 +259,8 @@ TALER_EXCHANGE_verify_coin_history (const struct
well-formendess check). */// well-formendess check). *///
/* check that refund fee matches our expectations from /keys! */ /* check that refund fee matches our expectations from /keys! */
if (NULL != dk)
{
TALER_amount_ntoh (&fee, TALER_amount_ntoh (&fee,
&rr.refund_fee); &rr.refund_fee);
if ( (GNUNET_YES != if ( (GNUNET_YES !=
@ -265,6 +273,7 @@ TALER_EXCHANGE_verify_coin_history (const struct
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
}
add = GNUNET_NO; add = GNUNET_NO;
} }
else if (0 == strcasecmp (type, else if (0 == strcasecmp (type,