Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

fixed: account_transactions table name #2222

Merged
merged 4 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

### Emitter & Flusher

- (bugs) [\#2222](https://github.com/bandprotocol/bandchain/pull/2222) Fix account_transactions table name
- (impv) [\#2196](https://github.com/bandprotocol/bandchain/pull/2196) Fix create view table command
- (impv) [\#2186](https://github.com/bandprotocol/bandchain/pull/2186) Add temporary view tables.
- (bugs) [\#2192](https://github.com/bandprotocol/bandchain/pull/2192) Add `commission_amount` field to Withdraw Commission Reward.
Expand All @@ -40,8 +41,8 @@

### Scan

- (bug) [\#2119](https://github.com/bandprotocol/bandchain/pull/2119) Fix matching order on search.
- (bug) [\#2061](https://github.com/bandprotocol/bandchain/pull/2061) Fix wrong delegation count on account index
- (bugs) [\#2119](https://github.com/bandprotocol/bandchain/pull/2119) Fix matching order on search.
- (bugs) [\#2061](https://github.com/bandprotocol/bandchain/pull/2061) Fix wrong delegation count on account index

### Bridges

Expand Down
4 changes: 2 additions & 2 deletions flusher/flusher/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def Column(*args, **kwargs):
Column("amount", sa.DECIMAL),
)

account_transcations = sa.Table(
"account_transcations",
account_transactions = sa.Table(
"account_transactions",
metadata,
Column("transaction_id", sa.Integer, sa.ForeignKey("transactions.id"), primary_key=True),
Column("account_id", sa.Integer, sa.ForeignKey("accounts.id"), primary_key=True),
Expand Down
4 changes: 2 additions & 2 deletions flusher/flusher/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
validator_votes,
unbonding_delegations,
redelegations,
account_transcations,
account_transactions,
)


Expand Down Expand Up @@ -52,7 +52,7 @@ def handle_new_transaction(self, msg):
tx_id = self.get_transaction_id(msg["hash"])
for account in related_tx_accounts:
self.conn.execute(
account_transcations.insert(),
account_transactions.insert(),
{"transaction_id": tx_id, "account_id": self.get_account_id(account)},
)

Expand Down