diff --git a/.changelog/739.bugfix.md b/.changelog/739.bugfix.md new file mode 100644 index 000000000..aadc952cf --- /dev/null +++ b/.changelog/739.bugfix.md @@ -0,0 +1,4 @@ +post 0.3.2 fixes + +api: filters out old rofl txs that were not parsed properly during a 2 week span in early july +db: retroactively updates the runtime tx fee denom to default to ''. diff --git a/CHANGELOG.md b/CHANGELOG.md index 7abf64873..25fb88a54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -121,7 +121,6 @@ The format is inspired by [Keep a Changelog]. - Vendor oasis-core v24.0 ([#716](https://github.com/oasisprotocol/nexus/issues/716)) - ## 0.3.1 (2024-05-27) ### Features diff --git a/storage/client/queries/queries.go b/storage/client/queries/queries.go index d970aacc2..52d907afa 100644 --- a/storage/client/queries/queries.go +++ b/storage/client/queries/queries.go @@ -485,7 +485,8 @@ const ( ($3::text IS NULL OR txs.tx_hash = $3::text OR txs.tx_eth_hash = $3::text) AND ($4::text IS NULL OR rel.account_address = $4::text) AND ($5::timestamptz IS NULL OR txs.timestamp >= $5::timestamptz) AND - ($6::timestamptz IS NULL OR txs.timestamp < $6::timestamptz) + ($6::timestamptz IS NULL OR txs.timestamp < $6::timestamptz) AND + (signer0.signer_address IS NOT NULL) -- HACK: excludes malformed transactions that do not have the required fields ORDER BY txs.round DESC, txs.tx_index DESC LIMIT $7::bigint OFFSET $8::bigint diff --git a/storage/migrations/25_runtime_tx_denoms.up.sql b/storage/migrations/25_runtime_tx_denoms.up.sql index af4d3c2dd..99c95446c 100644 --- a/storage/migrations/25_runtime_tx_denoms.up.sql +++ b/storage/migrations/25_runtime_tx_denoms.up.sql @@ -4,6 +4,6 @@ ALTER TABLE chain.runtime_transactions ADD COLUMN amount_symbol TEXT; ALTER TABLE chain.runtime_transactions - ADD COLUMN fee_symbol TEXT; + ADD COLUMN fee_symbol TEXT NOT NULL DEFAULT ''; -- Will be populated after reindex COMMIT;