Skip to content

Commit

Permalink
Merge pull request #739 from oasisprotocol/andrew7234/default-fee-symbol
Browse files Browse the repository at this point in the history
Andrew7234/default fee symbol
  • Loading branch information
Andrew7234 authored Aug 27, 2024
2 parents 51e6605 + c96cbae commit 16d97c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .changelog/739.bugfix.md
Original file line number Diff line number Diff line change
@@ -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 ''.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion storage/client/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion storage/migrations/25_runtime_tx_denoms.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 16d97c1

Please sign in to comment.