fix stupid ordering issue after refactoring
This commit is contained in:
parent
beeece1d6a
commit
6b4313da61
@ -1075,14 +1075,11 @@ TALER_EXCHANGE_reserve_withdraw (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
void *res_cb_cls)
|
void *res_cb_cls)
|
||||||
{
|
{
|
||||||
struct TALER_Amount amount_with_fee;
|
struct TALER_Amount amount_with_fee;
|
||||||
struct TALER_ReservePublicKeyP reserve_pub;
|
|
||||||
struct TALER_ReserveSignatureP reserve_sig;
|
struct TALER_ReserveSignatureP reserve_sig;
|
||||||
struct TALER_WithdrawRequestPS req;
|
struct TALER_WithdrawRequestPS req;
|
||||||
struct TALER_PlanchetDetail pd;
|
struct TALER_PlanchetDetail pd;
|
||||||
struct TALER_EXCHANGE_ReserveWithdrawHandle *wsh;
|
struct TALER_EXCHANGE_ReserveWithdrawHandle *wsh;
|
||||||
|
|
||||||
GNUNET_CRYPTO_eddsa_key_get_public (&reserve_priv->eddsa_priv,
|
|
||||||
&reserve_pub.eddsa_pub);
|
|
||||||
GNUNET_CRYPTO_eddsa_key_get_public (&reserve_priv->eddsa_priv,
|
GNUNET_CRYPTO_eddsa_key_get_public (&reserve_priv->eddsa_priv,
|
||||||
&req.reserve_pub.eddsa_pub);
|
&req.reserve_pub.eddsa_pub);
|
||||||
req.purpose.size = htonl (sizeof (struct TALER_WithdrawRequestPS));
|
req.purpose.size = htonl (sizeof (struct TALER_WithdrawRequestPS));
|
||||||
@ -1100,7 +1097,6 @@ TALER_EXCHANGE_reserve_withdraw (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
&amount_with_fee);
|
&amount_with_fee);
|
||||||
TALER_amount_hton (&req.withdraw_fee,
|
TALER_amount_hton (&req.withdraw_fee,
|
||||||
&pk->fee_withdraw);
|
&pk->fee_withdraw);
|
||||||
req.h_denomination_pub = pd.denom_pub_hash;
|
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
TALER_planchet_prepare (&pk->key,
|
TALER_planchet_prepare (&pk->key,
|
||||||
ps,
|
ps,
|
||||||
@ -1109,6 +1105,7 @@ TALER_EXCHANGE_reserve_withdraw (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
GNUNET_break_op (0);
|
GNUNET_break_op (0);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
req.h_denomination_pub = pd.denom_pub_hash;
|
||||||
GNUNET_CRYPTO_hash (pd.coin_ev,
|
GNUNET_CRYPTO_hash (pd.coin_ev,
|
||||||
pd.coin_ev_size,
|
pd.coin_ev_size,
|
||||||
&req.h_coin_envelope);
|
&req.h_coin_envelope);
|
||||||
|
Loading…
Reference in New Issue
Block a user