mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
withdraw: it's okay for amount to be None; we'll calculate it later
This commit is contained in:
@@ -663,7 +663,7 @@ def cli_withdraw(args, password=None, interactive=True, wallet_keys=None, config
|
||||
log.debug("recipient = {}".format(recipient_addr))
|
||||
return {'error': 'Invalid address'}
|
||||
|
||||
if not isinstance(amount, int):
|
||||
if amount is not None not isinstance(amount, int):
|
||||
log.debug("amount = {}".format(amount))
|
||||
return {'error': 'Invalid amount'}
|
||||
|
||||
@@ -2707,6 +2707,7 @@ def cli_api(args, config_path=CONFIG_PATH):
|
||||
command: api
|
||||
help: Control the RESTful API endpoint
|
||||
arg: command (str) '"start", "stop", or "status"'
|
||||
opt: secret (str) 'The password all RPC callers must use. Defaults to rpc_token in the config file.'
|
||||
"""
|
||||
|
||||
config_dir = CONFIG_DIR
|
||||
|
||||
Reference in New Issue
Block a user