diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_db.c')
-rw-r--r-- | src/mint/taler-mint-httpd_db.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c index a4a03aba0..12e4f3e78 100644 --- a/src/mint/taler-mint-httpd_db.c +++ b/src/mint/taler-mint-httpd_db.c | |||
@@ -508,14 +508,12 @@ refresh_accept_melts (struct MHD_Connection *connection, | |||
508 | * @param refresh_session_pub public key of the refresh session | 508 | * @param refresh_session_pub public key of the refresh session |
509 | * @param client_signature signature of the client (matching @a refresh_session_pub) | 509 | * @param client_signature signature of the client (matching @a refresh_session_pub) |
510 | * over the melting request | 510 | * over the melting request |
511 | * @param num_new_denoms number of entries in @a denom_pubs | 511 | * @param num_new_denoms number of entries in @a denom_pubs, size of y-dimension of @commit_coin array |
512 | * @param denum_pubs public keys of the coins we want to withdraw in the end | 512 | * @param denum_pubs public keys of the coins we want to withdraw in the end |
513 | * @param coin_count number of entries in @a coin_public_infos and @a coin_melt_details | 513 | * @param coin_count number of entries in @a coin_public_infos and @a coin_melt_details, size of y-dimension of @commit_link array |
514 | * @param coin_public_infos information about the coins to melt | 514 | * @param coin_public_infos information about the coins to melt |
515 | * @param coin_melt_details signatures and (residual) value of the respective coin should be melted | 515 | * @param coin_melt_details signatures and (residual) value of the respective coin should be melted |
516 | * @param kappa size of x-dimension of @commit_coin and @commit_link arrays | 516 | * @param kappa size of x-dimension of @commit_coin and @commit_link arrays |
517 | * @param num_oldcoins size of y-dimension of @commit_link array | ||
518 | * @param num_newcoins size of y-dimension of @commit_coin array | ||
519 | * @param commit_coin 2d array of coin commitments (what the mint is to sign | 517 | * @param commit_coin 2d array of coin commitments (what the mint is to sign |
520 | * once the "/refres/reveal" of cut and choose is done) | 518 | * once the "/refres/reveal" of cut and choose is done) |
521 | * @param commit_link 2d array of coin link commitments (what the mint is | 519 | * @param commit_link 2d array of coin link commitments (what the mint is |
@@ -534,8 +532,6 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection, | |||
534 | const struct TALER_CoinPublicInfo *coin_public_infos, | 532 | const struct TALER_CoinPublicInfo *coin_public_infos, |
535 | const struct MeltDetails *coin_melt_details, | 533 | const struct MeltDetails *coin_melt_details, |
536 | unsigned int kappa, | 534 | unsigned int kappa, |
537 | unsigned int num_oldcoins, | ||
538 | unsigned int num_newcoins, | ||
539 | struct RefreshCommitCoin *const* commit_coin, | 535 | struct RefreshCommitCoin *const* commit_coin, |
540 | struct RefreshCommitLink *const* commit_link) | 536 | struct RefreshCommitLink *const* commit_link) |
541 | { | 537 | { |
@@ -611,7 +607,7 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection, | |||
611 | 607 | ||
612 | for (i = 0; i < kappa; i++) | 608 | for (i = 0; i < kappa; i++) |
613 | { | 609 | { |
614 | for (j = 0; j < num_newcoins; j++) | 610 | for (j = 0; j < num_new_denoms; j++) |
615 | { | 611 | { |
616 | if (GNUNET_OK != | 612 | if (GNUNET_OK != |
617 | TALER_MINT_DB_insert_refresh_commit_coin (db_conn, | 613 | TALER_MINT_DB_insert_refresh_commit_coin (db_conn, |
@@ -627,7 +623,7 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection, | |||
627 | } | 623 | } |
628 | for (i = 0; i < kappa; i++) | 624 | for (i = 0; i < kappa; i++) |
629 | { | 625 | { |
630 | for (j = 0; j < num_oldcoins; j++) | 626 | for (j = 0; j < coin_count; j++) |
631 | { | 627 | { |
632 | if (GNUNET_OK != | 628 | if (GNUNET_OK != |
633 | TALER_MINT_DB_insert_refresh_commit_link (db_conn, | 629 | TALER_MINT_DB_insert_refresh_commit_link (db_conn, |