summaryrefslogtreecommitdiff
path: root/src/headless
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/headless
parent1744b1a80063397105081a4d5aeec76936781345 (diff)
downloadwallet-core-9e2be07cfc2267f817c22105ad2a147bc7f8c33e.tar.gz
wallet-core-9e2be07cfc2267f817c22105ad2a147bc7f8c33e.tar.bz2
wallet-core-9e2be07cfc2267f817c22105ad2a147bc7f8c33e.zip
fix bug in withdrawal operation state machine, allow manual reserve update from CLI
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/taler-wallet-cli.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 28618bcc2..2a1040630 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -374,6 +374,18 @@ advancedCli
});
});
+ advancedCli
+ .subcommand("updateReserve", "update-reserve", {
+ help: "Update reserve status.",
+ })
+ .requiredArgument("reservePub", clk.STRING)
+ .action(async args => {
+ await withWallet(args, async wallet => {
+ const r = await wallet.updateReserve(args.updateReserve.reservePub);
+ console.log("updated reserve:", JSON.stringify(r, undefined, 2));
+ });
+ });
+
const testCli = walletCli.subcommand("testingArgs", "testing", {
help: "Subcommands for testing GNU Taler deployments.",
});