aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-16 17:18:46 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-16 17:18:46 +0530
commit9e2be07cfc2267f817c22105ad2a147bc7f8c33e (patch)
treecba573c84f102dbe62a1ddfd250404b485202c65 /src/wallet.ts
parent1744b1a80063397105081a4d5aeec76936781345 (diff)
fix bug in withdrawal operation state machine, allow manual reserve update from CLI
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 9cba1360e..291143761 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -85,6 +85,7 @@ import {
import {
processReserve,
createTalerWithdrawReserve,
+ forceQueryReserve,
} from "./operations/reserves";
import { InternalWalletState } from "./operations/state";
@@ -714,6 +715,11 @@ export class Wallet {
}
}
+ async updateReserve(reservePub: string): Promise<ReserveRecord | undefined> {
+ await forceQueryReserve(this.ws, reservePub);
+ return await this.ws.db.get(Stores.reserves, reservePub);
+ }
+
async refuseProposal(proposalId: string): Promise<void> {
return refuseProposal(this.ws, proposalId);
}