diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 29 | 
1 files changed, 20 insertions, 9 deletions
| diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 06fa2479..d361d539 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -202,7 +202,6 @@ enum TALER_EXCHANGEDB_ReplicatedTable    TALER_EXCHANGEDB_RT_RESERVES_CLOSE,    TALER_EXCHANGEDB_RT_RESERVES_OPEN_REQUESTS,    TALER_EXCHANGEDB_RT_RESERVES_OPEN_DEPOSITS, -  TALER_EXCHANGEDB_RT_RESERVES_CLOSE_REQUESTS,    TALER_EXCHANGEDB_RT_RESERVES_OUT,    TALER_EXCHANGEDB_RT_AUDITORS,    TALER_EXCHANGEDB_RT_AUDITOR_DENOM_SIGS, @@ -341,14 +340,6 @@ struct TALER_EXCHANGEDB_TableData      {        struct TALER_ReservePublicKeyP reserve_pub;        struct GNUNET_TIME_Timestamp execution_date; -      struct TALER_ReserveSignatureP reserve_sig; -      struct TALER_PaytoHashP wire_target_h_payto; -    } reserves_close_requests; - -    struct -    { -      struct TALER_ReservePublicKeyP reserve_pub; -      struct GNUNET_TIME_Timestamp execution_date;        struct TALER_WireTransferIdentifierRawP wtid;        struct TALER_PaytoHashP sender_account_h_payto;        struct TALER_Amount amount; @@ -587,6 +578,8 @@ struct TALER_EXCHANGEDB_TableData        struct GNUNET_TIME_Timestamp close_timestamp;        struct TALER_ReserveSignatureP reserve_sig;        struct TALER_Amount close; +      struct TALER_Amount close_fee; +      char *payto_uri;      } close_requests;      struct @@ -4111,6 +4104,24 @@ struct TALER_EXCHANGEDB_Plugin    /** +   * Obtain information about force-closed reserves +   * where the close was not yet done (and their remaining +   * balances).  Updates the returned reserve's close +   * status to "done". +   * +   * @param cls closure of the plugin +   * @param rec function to call on (to be) closed reserves +   * @param rec_cls closure for @a rec +   * @return transaction status +   */ +  enum GNUNET_DB_QueryStatus +  (*get_unfinished_close_requests)( +    void *cls, +    TALER_EXCHANGEDB_ReserveExpiredCallback rec, +    void *rec_cls); + + +  /**     * Insert reserve open coin deposit data into database.     * Subtracts the @a coin_total from the coin's balance.     * | 
