Browse Source

rename command dumpprivkey as getprivatekeys

283
ThomasV 11 years ago
parent
commit
563a7d99b9
  1. 6
      lib/commands.py

6
lib/commands.py

@ -63,8 +63,8 @@ register_command('createmultisig', 2, 2, False, True, False, 'similar to
register_command('createrawtransaction', 2, 2, False, True, False, 'similar to bitcoind\'s command')
register_command('deseed', 0, 0, False, True, False, 'Remove seed from wallet, creating a seedless, watching-only wallet.')
register_command('decoderawtransaction', 1, 1, False, False, False, 'similar to bitcoind\'s command')
register_command('dumpprivkey', 1, 1, False, True, True, 'Dumps a specified private key for a given address', 'dumpprivkey <bitcoin address>')
register_command('dumpprivkeys', 0, 0, False, True, True, 'dump all private keys')
register_command('getprivatekeys', 1, 1, False, True, True, 'Get the private keys of a given address', 'dumpprivkey <bitcoin address>')
register_command('dumpprivkeys', 0, 0, False, True, True, 'Dump all private keys in your wallet')
register_command('freeze', 1, 1, False, True, True, 'Freeze the funds at one of your wallet\'s addresses', 'freeze <address>')
register_command('getbalance', 0, 1, True, True, False, 'Return the balance of your wallet, or of one account in your wallet', 'getbalance [<account>]')
register_command('getservers', 0, 0, True, False, False, 'Return the list of available servers')
@ -193,7 +193,7 @@ class Commands:
def unfreeze(self,addr):
return self.wallet.unfreeze(addr)
def dumpprivkey(self, addr):
def getprivatekeys(self, addr):
return self.wallet.get_private_key(addr, self.password)
def dumpprivkeys(self, addresses = None):

Loading…
Cancel
Save