-work on test_sync.sh, incomplete
This commit is contained in:
parent
0efc7fd524
commit
ee79f31275
@ -18,7 +18,8 @@ psql talercheck-in < auditor-basedb.sql >/dev/null 2> /dev/null
|
|||||||
echo -n "."
|
echo -n "."
|
||||||
taler-auditor-sync -s test-sync-in.conf -d test-sync-out.conf -t
|
taler-auditor-sync -s test-sync-in.conf -d test-sync-out.conf -t
|
||||||
|
|
||||||
for table in denominations denomination_revocations reserves reserves_in reserves_close reserves_out auditors auditor_denom_sigs exchange_sign_keys signkey_revocations known_coins refresh_commitments refresh_revealed_coins refresh_transfer_keys deposits refunds wire_out aggregation_tracking wire_fee recoup recoup_refresh
|
# cs_nonce_locks excluded: no point
|
||||||
|
for table in denominations denomination_revocations wire_targets reserves reserves_in reserves_close reserves_out auditors auditor_denom_sigs exchange_sign_keys signkey_revocations extensions extension_details known_coins refresh_commitments refresh_revealed_coins refresh_transfer_keys deposits refunds wire_out aggregation_tracking wire_fee recoup recoup_refresh
|
||||||
do
|
do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
CIN=`echo "SELECT COUNT(*) FROM $table" | psql talercheck-in -Aqt`
|
CIN=`echo "SELECT COUNT(*) FROM $table" | psql talercheck-in -Aqt`
|
||||||
|
@ -2079,6 +2079,7 @@ UPDATE known_coins
|
|||||||
WHERE coin_pub=in_coin_pub;
|
WHERE coin_pub=in_coin_pub;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Credit the reserve and update reserve timers.
|
-- Credit the reserve and update reserve timers.
|
||||||
UPDATE reserves
|
UPDATE reserves
|
||||||
SET
|
SET
|
||||||
|
@ -39,6 +39,10 @@ irbt_cb_table_denominations (struct PostgresClosure *pg,
|
|||||||
struct GNUNET_PQ_QueryParam params[] = {
|
struct GNUNET_PQ_QueryParam params[] = {
|
||||||
GNUNET_PQ_query_param_uint64 (&td->serial),
|
GNUNET_PQ_query_param_uint64 (&td->serial),
|
||||||
GNUNET_PQ_query_param_auto_from_type (&denom_hash),
|
GNUNET_PQ_query_param_auto_from_type (&denom_hash),
|
||||||
|
GNUNET_PQ_query_param_uint32 (
|
||||||
|
&td->details.denominations.denom_type),
|
||||||
|
GNUNET_PQ_query_param_uint32 (
|
||||||
|
&td->details.denominations.age_mask),
|
||||||
TALER_PQ_query_param_denom_pub (
|
TALER_PQ_query_param_denom_pub (
|
||||||
&td->details.denominations.denom_pub),
|
&td->details.denominations.denom_pub),
|
||||||
GNUNET_PQ_query_param_auto_from_type (
|
GNUNET_PQ_query_param_auto_from_type (
|
||||||
|
@ -53,8 +53,8 @@ lrbt_cb_table_denominations (void *cls,
|
|||||||
"denom_type",
|
"denom_type",
|
||||||
&td.details.denominations.denom_type),
|
&td.details.denominations.denom_type),
|
||||||
GNUNET_PQ_result_spec_uint32 (
|
GNUNET_PQ_result_spec_uint32 (
|
||||||
"age_restrictions",
|
"age_mask",
|
||||||
&td.details.denominations.age_restrictions),
|
&td.details.denominations.age_mask),
|
||||||
TALER_PQ_result_spec_denom_pub (
|
TALER_PQ_result_spec_denom_pub (
|
||||||
"denom_pub",
|
"denom_pub",
|
||||||
&td.details.denominations.denom_pub),
|
&td.details.denominations.denom_pub),
|
||||||
|
@ -280,8 +280,9 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",fee_refresh_frac"
|
",fee_refresh_frac"
|
||||||
",fee_refund_val"
|
",fee_refund_val"
|
||||||
",fee_refund_frac"
|
",fee_refund_frac"
|
||||||
",denom_pub"
|
",denom_type"
|
||||||
",age_mask"
|
",age_mask"
|
||||||
|
",denom_pub"
|
||||||
" FROM denominations"
|
" FROM denominations"
|
||||||
" LEFT JOIN "
|
" LEFT JOIN "
|
||||||
" denomination_revocations USING (denominations_serial);",
|
" denomination_revocations USING (denominations_serial);",
|
||||||
@ -2162,7 +2163,7 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",h_blind_ev"
|
",h_blind_ev"
|
||||||
",denominations_serial"
|
",denominations_serial"
|
||||||
",denom_sig"
|
",denom_sig"
|
||||||
",reserve_pub"
|
",reserve_uuid"
|
||||||
",reserve_sig"
|
",reserve_sig"
|
||||||
",execution_date"
|
",execution_date"
|
||||||
",amount_with_fee_val"
|
",amount_with_fee_val"
|
||||||
@ -2384,6 +2385,8 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
"INSERT INTO denominations"
|
"INSERT INTO denominations"
|
||||||
"(denominations_serial"
|
"(denominations_serial"
|
||||||
",denom_pub_hash"
|
",denom_pub_hash"
|
||||||
|
",denom_type"
|
||||||
|
",age_mask"
|
||||||
",denom_pub"
|
",denom_pub"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
",valid_from"
|
",valid_from"
|
||||||
@ -2400,11 +2403,10 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",fee_refresh_frac"
|
",fee_refresh_frac"
|
||||||
",fee_refund_val"
|
",fee_refund_val"
|
||||||
",fee_refund_frac"
|
",fee_refund_frac"
|
||||||
",age_mask"
|
|
||||||
") VALUES "
|
") VALUES "
|
||||||
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10,"
|
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10,"
|
||||||
" $11, $12, $13, $14, $15, $16, $17, $18, $19);",
|
" $11, $12, $13, $14, $15, $16, $17, $18, $19, $20);",
|
||||||
19),
|
20),
|
||||||
GNUNET_PQ_make_prepare (
|
GNUNET_PQ_make_prepare (
|
||||||
"insert_into_table_denomination_revocations",
|
"insert_into_table_denomination_revocations",
|
||||||
"INSERT INTO denomination_revocations"
|
"INSERT INTO denomination_revocations"
|
||||||
|
@ -200,7 +200,7 @@ struct TALER_EXCHANGEDB_TableData
|
|||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
uint32_t denom_type;
|
uint32_t denom_type;
|
||||||
uint32_t age_restrictions;
|
uint32_t age_mask;
|
||||||
struct TALER_DenominationPublicKey denom_pub;
|
struct TALER_DenominationPublicKey denom_pub;
|
||||||
struct TALER_MasterSignatureP master_sig;
|
struct TALER_MasterSignatureP master_sig;
|
||||||
struct GNUNET_TIME_Timestamp valid_from;
|
struct GNUNET_TIME_Timestamp valid_from;
|
||||||
|
Loading…
Reference in New Issue
Block a user