diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-03 14:40:05 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-03 14:40:05 +0100 |
commit | 829acdd3d98f1014747f15ecb619b6fbaa06b640 (patch) | |
tree | 2b95c7ee2df1d3cc8277d0b684300f79d05c2264 /src/wallet.ts | |
parent | 8683c93613caa4047c4fd874aefb0b7d35fdc038 (diff) |
android
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 89f31f519..772bb01ac 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -47,6 +47,8 @@ import { preparePay, confirmPay, processDownloadProposal, + applyRefund, + getFullRefundFees, } from "./wallet-impl/pay"; import { @@ -88,8 +90,6 @@ import { Logger } from "./util/logging"; import { assertUnreachable } from "./util/assertUnreachable"; -import { applyRefund, getFullRefundFees } from "./wallet-impl/refund"; - import { updateExchangeFromUrl, getExchangeTrust, @@ -209,6 +209,7 @@ export class Wallet { */ async processOnePendingOperation( pending: PendingOperationInfo, + forceNow: boolean = false, ): Promise<void> { switch (pending.type) { case "bug": @@ -247,11 +248,11 @@ export class Wallet { /** * Process pending operations. */ - public async runPending(): Promise<void> { + public async runPending(forceNow: boolean = false): Promise<void> { const pendingOpsResponse = await this.getPendingOperations(); for (const p of pendingOpsResponse.pendingOperations) { try { - await this.processOnePendingOperation(p); + await this.processOnePendingOperation(p, forceNow); } catch (e) { console.error(e); } |