gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-anastasis] 01/02: Modified CREATE TABLE of truth


From: gnunet
Subject: [GNUnet-SVN] [taler-anastasis] 01/02: Modified CREATE TABLE of truth
Date: Tue, 15 Oct 2019 13:07:37 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 87bdfc9adc7d8734296763e5c2ac8bf2e1b6bcb8
Author: Dennis Neufeld <address@hidden>
AuthorDate: Tue Oct 15 12:32:07 2019 +0200

    Modified CREATE TABLE of truth
---
 src/backup-db/plugin_anastasis_postgres.c | 41 +++++++------------------------
 1 file changed, 9 insertions(+), 32 deletions(-)

diff --git a/src/backup-db/plugin_anastasis_postgres.c 
b/src/backup-db/plugin_anastasis_postgres.c
index 8359e55..da1761e 100644
--- a/src/backup-db/plugin_anastasis_postgres.c
+++ b/src/backup-db/plugin_anastasis_postgres.c
@@ -249,6 +249,7 @@ postgres_find_contract_terms_from_hash (void *cls,
 
 
 /**
+ * FIXME
  * Insert proposal data and its hashcode into db
  *
  * @param cls closure
@@ -294,30 +295,8 @@ postgres_record_payment (void *cls,
                                              params);
 }
 
-
-/**
- * Closure for #find_contracts_cb().
- */
-struct FindContractsContext
-{
-  /**
-   * Function to call on each result.
-   */
-  TALER_ANASTASISDB_ProposalDataCallback cb;
-
-  /**
-   * Closure for @e cb.
-   */
-  void *cb_cls;
-
-  /**
-   * Transaction status code to set.
-   */
-  enum GNUNET_DB_QueryStatus qs;
-};
-
-
 /**
+ * FIXME
  * Function to be called with the results of a SELECT statement
  * that has returned @a num_results results.
  *
@@ -366,7 +345,8 @@ find_contracts_cb (void *cls,
 }
 
 
-/**
+/** 
+ * FIXME
  * Return proposals whose timestamp are older than `date`.
  * Among those proposals, only those ones being between the
  * start-th and (start-nrows)-th record are returned.  The rows
@@ -397,13 +377,13 @@ postgres_find_contract_terms_by_date_and_range (void *cls,
                                                 struct GNUNET_TIME_Absolute
                                                 date,
                                                 const struct
-                                                TALER_MerchantPublicKeyP *
+                                                AnastasisPublicKeyP *
                                                 anastasis_pub,
                                                 uint64_t start,
                                                 uint64_t nrows,
                                                 int past,
                                                 unsigned int ascending,
-                                                
TALER_ANASTASISDB_ProposalDataCallback
+                                                
ANASTASIS_DB_ProposalDataCallback
                                                 cb,
                                                 void *cb_cls)
 {
@@ -452,7 +432,7 @@ postgres_find_contract_terms_by_date_and_range (void *cls,
  * @return NULL on error, otherwise a `struct TALER_ANASTASISDB_Plugin`
  */
 void *
-plugin_anastasis_db_postgres_init (void *cls)
+libtaler_plugin_anastasis_db_postgres_init (void *cls)
 {
   struct GNUNET_CONFIGURATION_Handle *cfg = cls;
   struct PostgresClosure *pg;
@@ -464,11 +444,8 @@ plugin_anastasis_db_postgres_init (void *cls)
        contract terms table */
     GNUNET_PQ_make_execute ("CREATE TABLE anastasis_truth
                             ( truth_id uuid PRIMARY KEY NOT NULL,
-                              truth_method VARCHAR,
-                              truth_mimetype VARCHAR,
                               truth bytea,
-                              expiration timestamp,
-                              key_share_data bytea
+                              expiration timestamp
                             );"),                 
 
     GNUNET_PQ_make_execute ("CREATE TABLE anastasis_user
@@ -526,7 +503,7 @@ plugin_anastasis_db_postgres_init (void *cls)
  * @return NULL (always)
  */
 void *
-plugin_anastasisdb_postgres_done (void *cls)
+plugin_anastasis_db_postgres_done (void *cls)
 {
   struct ANASTASIS_DB_Plugin *plugin = cls;
   struct PostgresClosure *pg = plugin->cls;

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



reply via email to

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