Skip to content

Commit

Permalink
Update verify-range script (#5067)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms authored Sep 25, 2023
1 parent a1e64fb commit 7d95f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/horizon/docker/verify-range/start
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ dump_horizon_db() {
echo "dumping history_ledgers"
psql "postgres://postgres:postgres@localhost:5432/horizon?sslmode=disable" -t -A -F"," --variable="FETCH_COUNT=100" -c "select sequence, ledger_hash, previous_ledger_hash, transaction_count, operation_count, closed_at, id, total_coins, fee_pool, base_fee, base_reserve, max_tx_set_size, protocol_version, ledger_header, successful_transaction_count, failed_transaction_count from history_ledgers order by sequence asc" > "${1}_ledgers"
echo "dumping history_operations"
psql "postgres://postgres:postgres@localhost:5432/horizon?sslmode=disable" -t -A -F"," --variable="FETCH_COUNT=100" -c "select * from history_operations order by id asc" > "${1}_operations"
# skip is_payment column which was only introduced in the most recent horizon v2.27.0
psql "postgres://postgres:postgres@localhost:5432/horizon?sslmode=disable" -t -A -F"," --variable="FETCH_COUNT=100" -c "select id, transaction_id, application_order, type, details, source_account, source_account_muxed from history_operations order by id asc" > "${1}_operations"
echo "dumping history_operation_claimable_balances"
psql "postgres://postgres:postgres@localhost:5432/horizon?sslmode=disable" -t -A -F"," --variable="FETCH_COUNT=100" -c "select history_operation_id, history_claimable_balance_id from history_operation_claimable_balances left join history_claimable_balances on history_claimable_balances.id = history_operation_claimable_balances.history_claimable_balance_id order by history_operation_id asc, id asc" > "${1}_operation_claimable_balances"
echo "dumping history_operation_participants"
Expand Down

0 comments on commit 7d95f68

Please sign in to comment.