diff options
Diffstat (limited to 'src/auditordb')
| -rw-r--r-- | src/auditordb/auditor-0001.sql | 2 | ||||
| -rw-r--r-- | src/auditordb/pg_get_deposit_confirmations.c | 6 | ||||
| -rw-r--r-- | src/auditordb/pg_insert_deposit_confirmation.c | 4 | 
3 files changed, 6 insertions, 6 deletions
diff --git a/src/auditordb/auditor-0001.sql b/src/auditordb/auditor-0001.sql index a19655d4..1fdbe78c 100644 --- a/src/auditordb/auditor-0001.sql +++ b/src/auditordb/auditor-0001.sql @@ -315,7 +315,7 @@ CREATE TABLE IF NOT EXISTS deposit_confirmations    (master_pub BYTEA NOT NULL CONSTRAINT master_pub_ref REFERENCES auditor_exchanges(master_pub) ON DELETE CASCADE    ,serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY UNIQUE    ,h_contract_terms BYTEA NOT NULL CHECK (LENGTH(h_contract_terms)=64) -  ,h_extensions BYTEA NOT NULL CHECK (LENGTH(h_contract_terms)=64) +  ,h_policy BYTEA NOT NULL CHECK (LENGTH(h_policy)=64)    ,h_wire BYTEA NOT NULL CHECK (LENGTH(h_wire)=64)    ,exchange_timestamp INT8 NOT NULL    ,refund_deadline INT8 NOT NULL diff --git a/src/auditordb/pg_get_deposit_confirmations.c b/src/auditordb/pg_get_deposit_confirmations.c index 6c7fe73c..3f0bd1e2 100644 --- a/src/auditordb/pg_get_deposit_confirmations.c +++ b/src/auditordb/pg_get_deposit_confirmations.c @@ -87,8 +87,8 @@ deposit_confirmation_cb (void *cls,                                      &serial_id),        GNUNET_PQ_result_spec_auto_from_type ("h_contract_terms",                                              &dc.h_contract_terms), -      GNUNET_PQ_result_spec_auto_from_type ("h_extensions", -                                            &dc.h_extensions), +      GNUNET_PQ_result_spec_auto_from_type ("h_policy", +                                            &dc.h_policy),        GNUNET_PQ_result_spec_auto_from_type ("h_wire",                                              &dc.h_wire),        GNUNET_PQ_result_spec_timestamp ("exchange_timestamp", @@ -158,7 +158,7 @@ TAH_PG_get_deposit_confirmations (             "SELECT"             " serial_id"             ",h_contract_terms" -           ",h_extensions" +           ",h_policy"             ",h_wire"             ",exchange_timestamp"             ",wire_deadline" diff --git a/src/auditordb/pg_insert_deposit_confirmation.c b/src/auditordb/pg_insert_deposit_confirmation.c index cc52ba4e..675f8ed0 100644 --- a/src/auditordb/pg_insert_deposit_confirmation.c +++ b/src/auditordb/pg_insert_deposit_confirmation.c @@ -35,7 +35,7 @@ TAH_PG_insert_deposit_confirmation (    struct GNUNET_PQ_QueryParam params[] = {      GNUNET_PQ_query_param_auto_from_type (&dc->master_public_key),      GNUNET_PQ_query_param_auto_from_type (&dc->h_contract_terms), -    GNUNET_PQ_query_param_auto_from_type (&dc->h_extensions), +    GNUNET_PQ_query_param_auto_from_type (&dc->h_policy),      GNUNET_PQ_query_param_auto_from_type (&dc->h_wire),      GNUNET_PQ_query_param_timestamp (&dc->exchange_timestamp),      GNUNET_PQ_query_param_timestamp (&dc->wire_deadline), @@ -54,7 +54,7 @@ TAH_PG_insert_deposit_confirmation (             "INSERT INTO deposit_confirmations "             "(master_pub"             ",h_contract_terms" -           ",h_extensions" +           ",h_policy"             ",h_wire"             ",exchange_timestamp"             ",wire_deadline"  | 
