From 2a7f46ce554e2f906e2bb8a5a3e9f6942ab40f7b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 2 Oct 2013 13:50:36 +0200 Subject: [PATCH] new command: getservers (fix for issue #306) --- lib/commands.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index 77f669e..9caac36 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -50,6 +50,7 @@ register_command('dumpprivkey', 1, 1, True, True, 'Dumps a specified register_command('dumpprivkeys', 0, 0, True, True, 'dump all private keys') register_command('freeze', 1, 1, False, True, 'Freeze the funds at one of your wallet\'s addresses', 'freeze
') register_command('getbalance', 0, 1, False, False, 'Return the balance of your wallet, or of one account in your wallet', 'getbalance []') +register_command('getservers', 0, 0, False, False, 'Return the list of available servers') register_command('getaddressbalance', 1, 1, False, False, 'Return the balance of an address', 'getbalance
') register_command('getaddresshistory', 1, 1, False, False, 'Return the transaction history of an address', 'getaddresshistory
') register_command('getconfig', 1, 1, False, True, 'Return a configuration variable', 'getconfig ', config_options) @@ -187,6 +188,8 @@ class Commands: if u: out["unconfirmed"] = str(Decimal(u)/100000000) return out + def getservers(self): + return self.network.get_servers() def getseed(self): import mnemonic -- 1.7.1