diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-02 17:35:47 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-02 17:35:47 +0100 |
commit | b5ee6b7b4ee506712f51e1b90e9256c4b0c0c603 (patch) | |
tree | 7d8bb4398ab52b58a5223d37e058eaea6c72f963 /src/wallet-impl/balance.ts | |
parent | e1369ff7e8fc02116b9c4261036f0e42e3423cf4 (diff) |
pending operations WIP
Diffstat (limited to 'src/wallet-impl/balance.ts')
-rw-r--r-- | src/wallet-impl/balance.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wallet-impl/balance.ts b/src/wallet-impl/balance.ts index 1d8e077af..0abc96637 100644 --- a/src/wallet-impl/balance.ts +++ b/src/wallet-impl/balance.ts @@ -18,12 +18,10 @@ * Imports. */ import { - HistoryQuery, - HistoryEvent, WalletBalance, WalletBalanceEntry, } from "../walletTypes"; -import { oneShotIter, runWithWriteTransaction } from "../util/query"; +import { runWithReadTransaction } from "../util/query"; import { InternalWalletState } from "./state"; import { Stores, TipRecord, CoinStatus } from "../dbTypes"; import * as Amounts from "../util/amounts"; @@ -77,7 +75,7 @@ export async function getBalances( byExchange: {}, }; - await runWithWriteTransaction( + await runWithReadTransaction( ws.db, [Stores.coins, Stores.refresh, Stores.reserves, Stores.purchases], async tx => { |