gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: rename a_balance (#6170)


From: gnunet
Subject: [taler-exchange] branch master updated: rename a_balance (#6170)
Date: Wed, 08 Apr 2020 18:23:25 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 1554cc31 rename a_balance (#6170)
1554cc31 is described below

commit 1554cc310d450ee5cfbf3afd947ed8a063043254
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 8 18:23:21 2020 +0200

    rename a_balance (#6170)
---
 src/auditor/taler-helper-auditor-reserves.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-reserves.c 
b/src/auditor/taler-helper-auditor-reserves.c
index 76713192..766a8fda 100644
--- a/src/auditor/taler-helper-auditor-reserves.c
+++ b/src/auditor/taler-helper-auditor-reserves.c
@@ -263,7 +263,7 @@ struct ReserveSummary
    * Previous balance of the reserve as remembered by the auditor.
    * (updated based on @e total_in and @e total_out at the end).
    */
-  struct TALER_Amount a_balance;
+  struct TALER_Amount balance_at_previous_audit;
 
   /**
    * Previous withdraw fee balance of the reserve, as remembered by the 
auditor.
@@ -312,7 +312,7 @@ load_auditor_reserve_summary (struct ReserveSummary *rs)
                                         &rs->reserve_pub,
                                         &TALER_ARL_master_pub,
                                         &rowid,
-                                        &rs->a_balance,
+                                        &rs->balance_at_previous_audit,
                                         &rs->a_withdraw_fee_balance,
                                         &rs->a_expiration_date,
                                         &rs->sender_account);
@@ -326,23 +326,23 @@ load_auditor_reserve_summary (struct ReserveSummary *rs)
     rs->had_ri = GNUNET_NO;
     GNUNET_assert (GNUNET_OK ==
                    TALER_amount_get_zero (rs->total_in.currency,
-                                          &rs->a_balance));
+                                          &rs->balance_at_previous_audit));
     GNUNET_assert (GNUNET_OK ==
                    TALER_amount_get_zero (rs->total_in.currency,
                                           &rs->a_withdraw_fee_balance));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Creating fresh reserve `%s' with starting balance %s\n",
                 TALER_B2S (&rs->reserve_pub),
-                TALER_amount2s (&rs->a_balance));
+                TALER_amount2s (&rs->balance_at_previous_audit));
     return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
   }
   rs->had_ri = GNUNET_YES;
   if ( (GNUNET_YES !=
-        TALER_amount_cmp_currency (&rs->a_balance,
+        TALER_amount_cmp_currency (&rs->balance_at_previous_audit,
                                    &rs->a_withdraw_fee_balance)) ||
        (GNUNET_YES !=
         TALER_amount_cmp_currency (&rs->total_in,
-                                   &rs->a_balance)) )
+                                   &rs->balance_at_previous_audit)) )
   {
     GNUNET_break (0);
     return GNUNET_DB_STATUS_HARD_ERROR;
@@ -350,7 +350,7 @@ load_auditor_reserve_summary (struct ReserveSummary *rs)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Auditor remembers reserve `%s' has balance %s\n",
               TALER_B2S (&rs->reserve_pub),
-              TALER_amount2s (&rs->a_balance));
+              TALER_amount2s (&rs->balance_at_previous_audit));
   return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
 }
 
@@ -1028,7 +1028,7 @@ verify_reserve_balance (void *cls,
   GNUNET_assert (GNUNET_OK ==
                  TALER_amount_add (&balance,
                                    &rs->total_in,
-                                   &rs->a_balance));
+                                   &rs->balance_at_previous_audit));
   if (GNUNET_SYSERR ==
       TALER_amount_subtract (&nbalance,
                              &balance,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]