aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
ModeNameSize
-rw-r--r--.gitignore276logplain
-rw-r--r--Makefile.am13722logplain
-rw-r--r--bench-db-postgres.conf365logplain
-rw-r--r--bench_db.c14629logplain
-rw-r--r--benchmark-0001.sql1692logplain
-rw-r--r--common-0001.sql82768logplain
-rw-r--r--drop.sql841logplain
-rw-r--r--exchange-0001-part.sql61804logplain
-rw-r--r--exchange-0001.sql.in1086logplain
-rw-r--r--exchangedb-postgres.conf238logplain
-rw-r--r--exchangedb.conf1364logplain
-rw-r--r--exchangedb_accounts.c7486logplain
-rw-r--r--exchangedb_plugin.c2228logplain
-rw-r--r--exchangedb_transactions.c5608logplain
-rw-r--r--pg_abort_shard.c1826logplain
-rw-r--r--pg_abort_shard.h1501logplain
-rw-r--r--pg_activate_signing_key.c2109logplain
-rw-r--r--pg_activate_signing_key.h1498logplain
-rw-r--r--pg_add_denomination_key.c3536logplain
-rw-r--r--pg_add_denomination_key.h1704logplain
-rw-r--r--pg_add_policy_fulfillment_proof.c4401logplain
-rw-r--r--pg_add_policy_fulfillment_proof.h1443logplain
-rw-r--r--pg_aggregate.c9645logplain
-rw-r--r--pg_aggregate.h1694logplain
-rw-r--r--pg_begin_revolving_shard.c9076logplain
-rw-r--r--pg_begin_revolving_shard.h1917logplain
-rw-r--r--pg_begin_shard.c8373logplain
-rw-r--r--pg_begin_shard.h1771logplain
-rw-r--r--pg_commit.c1841logplain
-rw-r--r--pg_commit.h1203logplain
-rw-r--r--pg_complete_shard.c2016logplain
-rw-r--r--pg_complete_shard.h1545logplain
-rw-r--r--pg_compute_shard.c1713logplain
-rw-r--r--pg_compute_shard.h1238logplain
-rw-r--r--pg_count_known_coins.c2169logplain
-rw-r--r--pg_count_known_coins.h1413logplain
-rw-r--r--pg_create_aggregation_transient.c2409logplain
-rw-r--r--pg_create_aggregation_transient.h1973logplain
-rw-r--r--pg_create_shard_tables.c2319logplain
-rw-r--r--pg_create_shard_tables.h1403logplain
-rw-r--r--pg_create_tables.c1593logplain
-rw-r--r--pg_create_tables.h1265logplain
-rw-r--r--pg_delete_aggregation_transient.c1815logplain
-rw-r--r--pg_delete_aggregation_transient.h1566logplain
-rw-r--r--pg_delete_shard_locks.c1428logplain
-rw-r--r--pg_delete_shard_locks.h1319logplain
-rw-r--r--pg_do_batch_withdraw.c2675logplain
-rw-r--r--pg_do_batch_withdraw.h1866logplain
-rw-r--r--pg_do_batch_withdraw_insert.c3045logplain
-rw-r--r--pg_do_batch_withdraw_insert.h2019logplain
-rw-r--r--pg_do_deposit.c3640logplain
-rw-r--r--pg_do_deposit.h2018logplain
-rw-r--r--pg_do_melt.c3002logplain
-rw-r--r--pg_do_melt.h1969logplain
-rw-r--r--pg_do_purse_deposit.c3012logplain
-rw-r--r--pg_do_purse_deposit.h2431logplain
-rw-r--r--pg_do_purse_merge.c3361logplain
-rw-r--r--pg_do_purse_merge.h2231logplain
-rw-r--r--pg_do_recoup.c3282logplain
-rw-r--r--pg_do_recoup.h2235logplain
-rw-r--r--pg_do_recoup_refresh.c2947logplain
-rw-r--r--pg_do_recoup_refresh.h2300logplain
-rw-r--r--pg_do_refund.c3426logplain
-rw-r--r--pg_do_refund.h1894logplain
-rw-r--r--pg_do_reserve_open.c3109logplain
-rw-r--r--pg_do_reserve_open.h2325logplain
-rw-r--r--pg_do_reserve_purse.c4429logplain
-rw-r--r--pg_do_reserve_purse.h2381logplain
-rw-r--r--pg_do_withdraw.c3111logplain
-rw-r--r--pg_do_withdraw.h2076logplain
-rw-r--r--pg_drain_kyc_alert.c2094logplain
-rw-r--r--pg_drain_kyc_alert.h1457logplain
-rw-r--r--pg_drop_tables.c1899logplain
-rw-r--r--pg_drop_tables.h1267logplain
-rw-r--r--pg_ensure_coin_known.c5658logplain
-rw-r--r--pg_ensure_coin_known.h1857logplain
-rw-r--r--pg_event_listen.c1941logplain
-rw-r--r--pg_event_listen.h1688logplain
-rw-r--r--pg_event_listen_cancel.c1190logplain
-rw-r--r--pg_event_listen_cancel.h1249logplain
-rw-r--r--pg_event_notify.c1366logplain
-rw-r--r--pg_event_notify.h1421logplain
-rw-r--r--pg_expire_purse.c2312logplain
-rw-r--r--pg_expire_purse.h1505logplain
-rw-r--r--pg_find_aggregation_transient.c4451logplain
-rw-r--r--pg_find_aggregation_transient.h1544logplain
-rw-r--r--pg_gc.c2697logplain
-rw-r--r--pg_gc.h1221logplain
-rw-r--r--pg_get_coin_denomination.c2510logplain
-rw-r--r--pg_get_coin_denomination.h1565logplain
-rw-r--r--pg_get_coin_transactions.c32496logplain
-rw-r--r--pg_get_coin_transactions.h1552logplain
-rw-r--r--pg_get_denomination_info.c3840logplain
-rw-r--r--pg_get_denomination_info.h1565logplain
-rw-r--r--pg_get_denomination_revocation.c2282logplain
-rw-r--r--pg_get_denomination_revocation.h1579logplain
-rw-r--r--pg_get_drain_profit.c2749logplain
-rw-r--r--pg_get_drain_profit.h1902logplain
-rw-r--r--pg_get_expired_reserves.c5141logplain
-rw-r--r--pg_get_expired_reserves.h1553logplain
-rw-r--r--pg_get_extension_manifest.c2427logplain
-rw-r--r--pg_get_extension_manifest.h1538logplain
-rw-r--r--pg_get_global_fee.c3567logplain
-rw-r--r--pg_get_global_fee.h2200logplain
-rw-r--r--pg_get_global_fees.c5224logplain
-rw-r--r--pg_get_global_fees.h1359logplain
-rw-r--r--pg_get_known_coin.c2762logplain
-rw-r--r--pg_get_known_coin.h1453logplain
-rw-r--r--pg_get_link_data.c6554logplain
-rw-r--r--pg_get_link_data.h1616logplain
-rw-r--r--pg_get_melt.c4783logplain
-rw-r--r--pg_get_melt.h1725logplain
-rw-r--r--pg_get_old_coin_by_h_blind.c2379logplain
-rw-r--r--pg_get_old_coin_by_h_blind.h1619logplain
-rw-r--r--pg_get_policy_details.c2542logplain
-rw-r--r--pg_get_policy_details.h1467logplain
-rw-r--r--pg_get_purse_deposit.c3161logplain
-rw-r--r--pg_get_purse_deposit.h2056logplain
-rw-r--r--pg_get_purse_request.c3047logplain
-rw-r--r--pg_get_purse_request.h2144logplain
-rw-r--r--pg_get_ready_deposit.c3267logplain
-rw-r--r--pg_get_ready_deposit.h1896logplain
-rw-r--r--pg_get_refresh_reveal.c6578logplain
-rw-r--r--pg_get_refresh_reveal.h1612logplain
-rw-r--r--pg_get_reserve_balance.c2027logplain
-rw-r--r--pg_get_reserve_balance.h1483logplain
-rw-r--r--pg_get_reserve_by_h_blind.c2297logplain
-rw-r--r--pg_get_reserve_by_h_blind.h1637logplain
-rw-r--r--pg_get_reserve_history.c38981logplain
-rw-r--r--pg_get_reserve_history.h2529logplain
-rw-r--r--pg_get_unfinished_close_requests.c4870logplain
-rw-r--r--pg_get_unfinished_close_requests.h1526logplain
-rw-r--r--pg_get_wire_accounts.c3436logplain
-rw-r--r--pg_get_wire_accounts.h1407logplain
-rw-r--r--pg_get_wire_fee.c2850logplain
-rw-r--r--pg_get_wire_fee.h1850logplain
-rw-r--r--pg_get_wire_fees.c4197logplain
-rw-r--r--pg_get_wire_fees.h1503logplain
-rw-r--r--pg_get_withdraw_info.c3383logplain
-rw-r--r--pg_get_withdraw_info.h1594logplain
-rw-r--r--pg_have_deposit2.c4807logplain
-rw-r--r--pg_have_deposit2.h2105logplain
-rw-r--r--pg_helper.h5034logplain
-rw-r--r--pg_insert_aggregation_tracking.c1857logplain
-rw-r--r--pg_insert_aggregation_tracking.h1505logplain
-rw-r--r--pg_insert_auditor.c2123logplain
-rw-r--r--pg_insert_auditor.h1736logplain
-rw-r--r--pg_insert_auditor_denom_sig.c2229logplain
-rw-r--r--pg_insert_auditor_denom_sig.h1567logplain
-rw-r--r--pg_insert_close_request.c2378logplain
-rw-r--r--pg_insert_close_request.h1840logplain
-rw-r--r--pg_insert_contract.c3258logplain
-rw-r--r--pg_insert_contract.h1746logplain
-rw-r--r--pg_insert_denomination_info.c4091logplain
-rw-r--r--pg_insert_denomination_info.h1638logplain
-rw-r--r--pg_insert_denomination_revocation.c2023logplain
-rw-r--r--pg_insert_denomination_revocation.h1514logplain
-rw-r--r--pg_insert_deposit.c4063logplain
-rw-r--r--pg_insert_deposit.h1507logplain
-rw-r--r--pg_insert_drain_profit.c2304logplain
-rw-r--r--pg_insert_drain_profit.h1782logplain
-rw-r--r--pg_insert_global_fee.c4845logplain
-rw-r--r--pg_insert_global_fee.h2082logplain
-rw-r--r--pg_insert_history_request.c2480logplain
-rw-r--r--pg_insert_history_request.h2044logplain
-rw-r--r--pg_insert_kyc_requirement_for_account.c2280logplain
-rw-r--r--pg_insert_kyc_requirement_for_account.h1588logplain
-rw-r--r--pg_insert_kyc_requirement_process.c2712logplain
-rw-r--r--pg_insert_kyc_requirement_process.h1703logplain
-rw-r--r--pg_insert_partner.c2577logplain
-rw-r--r--pg_insert_partner.h2225logplain
-rw-r--r--pg_insert_purse_request.c4762logplain
-rw-r--r--pg_insert_purse_request.h2528logplain
-rw-r--r--pg_insert_records_by_table.c69191logplain
-rw-r--r--pg_insert_records_by_table.h1430logplain
-rw-r--r--pg_insert_refresh_reveal.c3294logplain
-rw-r--r--pg_insert_refresh_reveal.h2016logplain
-rw-r--r--pg_insert_refund.c2578logplain
-rw-r--r--pg_insert_refund.h1343logplain
-rw-r--r--pg_insert_reserve_closed.c4048logplain
-rw-r--r--pg_insert_reserve_closed.h1911logplain
-rw-r--r--pg_insert_reserve_open_deposit.c2496logplain
-rw-r--r--pg_insert_reserve_open_deposit.h2147logplain
-rw-r--r--pg_insert_signkey_revocation.c1907logplain
-rw-r--r--pg_insert_signkey_revocation.h1474logplain
-rw-r--r--pg_insert_wire.c1958logplain
-rw-r--r--pg_insert_wire.h1690logplain
-rw-r--r--pg_insert_wire_fee.c3673logplain
-rw-r--r--pg_insert_wire_fee.h1769logplain
-rw-r--r--pg_iterate_active_auditors.c3544logplain
-rw-r--r--pg_iterate_active_auditors.h1562logplain
-rw-r--r--pg_iterate_active_signkeys.c4543logplain
-rw-r--r--pg_iterate_active_signkeys.h1649logplain
-rw-r--r--pg_iterate_auditor_denominations.c3831logplain
-rw-r--r--pg_iterate_auditor_denominations.h1604logplain
-rw-r--r--pg_iterate_denomination_info.c6184logplain
-rw-r--r--pg_iterate_denomination_info.h1506logplain
-rw-r--r--pg_iterate_denominations.c5823logplain
-rw-r--r--pg_iterate_denominations.h1604logplain
-rw-r--r--pg_iterate_kyc_reference.c3700logplain
-rw-r--r--pg_iterate_kyc_reference.h1553logplain
-rw-r--r--pg_iterate_reserve_close_info.c3481logplain
-rw-r--r--pg_iterate_reserve_close_info.h1791logplain
-rw-r--r--pg_kyc_provider_account_lookup.c2270logplain
-rw-r--r--pg_kyc_provider_account_lookup.h1590logplain
-rw-r--r--pg_lookup_auditor_status.c2118logplain
-rw-r--r--pg_lookup_auditor_status.h1538logplain
-rw-r--r--pg_lookup_auditor_timestamp.c2036logplain
-rw-r--r--pg_lookup_auditor_timestamp.h1445logplain
-rw-r--r--pg_lookup_denomination_key.c3401logplain
-rw-r--r--pg_lookup_denomination_key.h1458logplain
-rw-r--r--pg_lookup_global_fee_by_time.c5758logplain
-rw-r--r--pg_lookup_global_fee_by_time.h1940logplain
-rw-r--r--pg_lookup_kyc_process_by_account.c2810logplain
-rw-r--r--pg_lookup_kyc_process_by_account.h1836logplain
-rw-r--r--pg_lookup_kyc_requirement_by_row.c2114logplain
-rw-r--r--pg_lookup_kyc_requirement_by_row.h1495logplain
-rw-r--r--pg_lookup_records_by_table.c88705logplain
-rw-r--r--pg_lookup_records_by_table.h1774logplain
-rw-r--r--pg_lookup_serial_by_table.c14592logplain
-rw-r--r--pg_lookup_serial_by_table.h1564logplain
-rw-r--r--pg_lookup_signing_key.c2241logplain
-rw-r--r--pg_lookup_signing_key.h1404logplain
-rw-r--r--pg_lookup_signkey_revocation.c2129logplain
-rw-r--r--pg_lookup_signkey_revocation.h1478logplain
-rw-r--r--pg_lookup_transfer_by_deposit.c7605logplain
-rw-r--r--pg_lookup_transfer_by_deposit.h2475logplain
-rw-r--r--pg_lookup_wire_fee_by_time.c4674logplain
-rw-r--r--pg_lookup_wire_fee_by_time.h2795logplain
-rw-r--r--pg_lookup_wire_timestamp.c1984logplain
-rw-r--r--pg_lookup_wire_timestamp.h1469logplain
-rw-r--r--pg_lookup_wire_transfer.c6050logplain
-rw-r--r--pg_lookup_wire_transfer.h1547logplain
-rw-r--r--pg_persist_policy_details.c2724logplain
-rw-r--r--pg_persist_policy_details.h1968logplain
-rw-r--r--pg_preflight.c2274logplain
-rw-r--r--pg_preflight.h1491logplain
-rw-r--r--pg_profit_drains_get_pending.c2955logplain
-rw-r--r--pg_profit_drains_get_pending.h1920logplain
-rw-r--r--pg_profit_drains_set_finished.c1680logplain
-rw-r--r--pg_profit_drains_set_finished.h1361logplain
-rw-r--r--pg_release_revolving_shard.c2124logplain
-rw-r--r--pg_release_revolving_shard.h1660logplain
-rw-r--r--pg_reserves_get.c2249logplain
-rw-r--r--pg_reserves_get.h1485logplain
-rw-r--r--pg_reserves_get_origin.c1989logplain
-rw-r--r--pg_reserves_get_origin.h1449logplain
-rw-r--r--pg_reserves_in_insert.c10391logplain
-rw-r--r--pg_reserves_in_insert.h2232logplain
-rw-r--r--pg_reserves_update.c1909logplain
-rw-r--r--pg_reserves_update.h1451logplain
-rw-r--r--pg_rollback.c1599logplain
-rw-r--r--pg_rollback.h1158logplain
-rw-r--r--pg_select_account_merges_above_serial_id.c6307logplain
-rw-r--r--pg_select_account_merges_above_serial_id.h1556logplain
-rw-r--r--pg_select_aggregation_amounts_for_kyc_check.c4034logplain
-rw-r--r--pg_select_aggregation_amounts_for_kyc_check.h1948logplain
-rw-r--r--pg_select_aggregation_transient.c2537logplain
-rw-r--r--pg_select_aggregation_transient.h1838logplain
-rw-r--r--pg_select_all_purse_decisions_above_serial_id.c4079logplain
-rw-r--r--pg_select_all_purse_decisions_above_serial_id.h1587logplain
-rw-r--r--pg_select_auditor_denom_sig.c2383logplain
-rw-r--r--pg_select_auditor_denom_sig.h1573logplain
-rw-r--r--pg_select_contract.c2498logplain
-rw-r--r--pg_select_contract.h1933logplain
-rw-r--r--pg_select_contract_by_purse.c2422logplain
-rw-r--r--pg_select_contract_by_purse.h1531logplain
-rw-r--r--pg_select_deposits_above_serial_id.c6577logplain
-rw-r--r--pg_select_deposits_above_serial_id.h1524logplain
-rw-r--r--pg_select_deposits_missing_wire.c5431logplain
-rw-r--r--pg_select_deposits_missing_wire.h1897logplain
-rw-r--r--pg_select_history_requests_above_serial_id.c4784logplain
-rw-r--r--pg_select_history_requests_above_serial_id.h1579logplain
-rw-r--r--pg_select_merge_amounts_for_kyc_check.c4236logplain
-rw-r--r--pg_select_merge_amounts_for_kyc_check.h1911logplain
-rw-r--r--pg_select_purse.c3067logplain
-rw-r--r--pg_select_purse.h2043logplain
-rw-r--r--pg_select_purse_by_merge_pub.c3111logplain
-rw-r--r--pg_select_purse_by_merge_pub.h2185logplain
-rw-r--r--pg_select_purse_decisions_above_serial_id.c4919logplain
-rw-r--r--pg_select_purse_decisions_above_serial_id.h1642logplain
-rw-r--r--pg_select_purse_deposits_above_serial_id.c6790logplain
-rw-r--r--pg_select_purse_deposits_above_serial_id.h1551logplain
-rw-r--r--pg_select_purse_deposits_by_purse.c4578logplain
-rw-r--r--pg_select_purse_deposits_by_purse.h1498logplain
-rw-r--r--pg_select_purse_merge.c2692logplain
-rw-r--r--pg_select_purse_merge.h1914logplain
-rw-r--r--pg_select_purse_merges_above_serial_id.c6084logplain
-rw-r--r--pg_select_purse_merges_above_serial_id.h1551logplain
-rw-r--r--pg_select_purse_requests_above_serial_id.c5675logplain
-rw-r--r--pg_select_purse_requests_above_serial_id.h1567logplain
-rw-r--r--pg_select_recoup_above_serial_id.c6325logplain
-rw-r--r--pg_select_recoup_above_serial_id.h1565logplain
-rw-r--r--pg_select_recoup_refresh_above_serial_id.c7293logplain
-rw-r--r--pg_select_recoup_refresh_above_serial_id.h1633logplain
-rw-r--r--pg_select_refreshes_above_serial_id.c5767logplain
-rw-r--r--pg_select_refreshes_above_serial_id.h1540logplain
-rw-r--r--pg_select_refunds_above_serial_id.c6824logplain
-rw-r--r--pg_select_refunds_above_serial_id.h1518logplain
-rw-r--r--pg_select_refunds_by_coin.c4131logplain
-rw-r--r--pg_select_refunds_by_coin.h1704logplain
-rw-r--r--pg_select_reserve_close_info.c2299logplain
-rw-r--r--pg_select_reserve_close_info.h1604logplain
-rw-r--r--pg_select_reserve_closed_above_serial_id.c5481logplain
-rw-r--r--pg_select_reserve_closed_above_serial_id.h1603logplain
-rw-r--r--pg_select_reserve_open_above_serial_id.c5152logplain
-rw-r--r--pg_select_reserve_open_above_serial_id.h1565logplain
-rw-r--r--pg_select_reserves_in_above_serial_id.c5239logplain
-rw-r--r--pg_select_reserves_in_above_serial_id.h1572logplain
-rw-r--r--pg_select_reserves_in_above_serial_id_by_account.c5415logplain
-rw-r--r--pg_select_reserves_in_above_serial_id_by_account.h1722logplain
-rw-r--r--pg_select_satisfied_kyc_processes.c3832logplain
-rw-r--r--pg_select_satisfied_kyc_processes.h1573logplain
-rw-r--r--pg_select_wire_out_above_serial_id.c4574logplain
-rw-r--r--pg_select_wire_out_above_serial_id.h1540logplain
-rw-r--r--pg_select_wire_out_above_serial_id_by_account.c4795logplain
-rw-r--r--pg_select_wire_out_above_serial_id_by_account.h1674logplain
-rw-r--r--pg_select_withdraw_amounts_for_kyc_check.c4434logplain
-rw-r--r--pg_select_withdraw_amounts_for_kyc_check.h1932logplain
-rw-r--r--pg_select_withdrawals_above_serial_id.c5403logplain
-rw-r--r--pg_select_withdrawals_above_serial_id.h1569logplain
-rw-r--r--pg_set_extension_manifest.c1937logplain
-rw-r--r--pg_set_extension_manifest.h1631logplain
-rw-r--r--pg_set_purse_balance.c1759logplain
-rw-r--r--pg_set_purse_balance.h1483logplain
-rw-r--r--pg_setup_foreign_servers.c4179logplain
-rw-r--r--pg_setup_foreign_servers.h1446logplain
-rw-r--r--pg_setup_partitions.c2590logplain
-rw-r--r--pg_setup_partitions.h1387logplain
-rw-r--r--pg_setup_wire_target.c1793logplain
-rw-r--r--pg_setup_wire_target.h1401logplain
-rw-r--r--pg_start.c1779logplain
-rw-r--r--pg_start.h1306logplain
-rw-r--r--pg_start_deferred_wire_out.c1996logplain
-rw-r--r--pg_start_deferred_wire_out.h1421logplain
-rw-r--r--pg_start_read_committed.c1868logplain
-rw-r--r--pg_start_read_committed.h1408logplain
-rw-r--r--pg_start_read_only.c1853logplain
-rw-r--r--pg_start_read_only.h1389logplain
-rw-r--r--pg_store_wire_transfer_out.c2234logplain
-rw-r--r--pg_store_wire_transfer_out.h1794logplain
-rw-r--r--pg_template.c988logplain
-rw-r--r--pg_template.h976logplain
-rwxr-xr-xpg_template.sh716logplain
-rw-r--r--pg_update_aggregation_transient.c2158logplain
-rw-r--r--pg_update_aggregation_transient.h1810logplain
-rw-r--r--pg_update_auditor.c2172logplain
-rw-r--r--pg_update_auditor.h1873logplain
-rw-r--r--pg_update_kyc_process_by_row.c3351logplain
-rw-r--r--pg_update_kyc_process_by_row.h1909logplain
-rw-r--r--pg_update_wire.c1860logplain
-rw-r--r--pg_update_wire.h1567logplain
-rw-r--r--pg_wire_prepare_data_get.c4020logplain
-rw-r--r--pg_wire_prepare_data_get.h1672logplain
-rw-r--r--pg_wire_prepare_data_insert.c1955logplain
-rw-r--r--pg_wire_prepare_data_insert.h1553logplain
-rw-r--r--pg_wire_prepare_data_mark_failed.c1718logplain
-rw-r--r--pg_wire_prepare_data_mark_failed.h1335logplain
-rw-r--r--pg_wire_prepare_data_mark_finished.c1705logplain
-rw-r--r--pg_wire_prepare_data_mark_finished.h1349logplain
-rw-r--r--plugin_exchangedb_common.c5101logplain
-rw-r--r--plugin_exchangedb_common.h1548logplain
-rw-r--r--plugin_exchangedb_postgres.c183427logplain
-rw-r--r--procedures.sql60098logplain
-rw-r--r--shard-0001-part.sql4940logplain
-rw-r--r--shard-0001.sql.in1080logplain
-rw-r--r--test-exchange-db-postgres.conf976logplain
-rw-r--r--test_exchangedb.c86258logplain
-rw-r--r--test_exchangedb_by_j.c5478logplain
-rw-r--r--versioning.sql11758logplain