rename 'balance' command as 'getbalance', per bitcoind
This commit is contained in:
parent
c263a92351
commit
4f5023e31b
2
electrum
2
electrum
|
@ -62,7 +62,7 @@ def arg_parser():
|
|||
parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)")
|
||||
parser.add_option("-o", "--offline", action="store_true", dest="offline", default=False, help="remain offline")
|
||||
parser.add_option("-a", "--all", action="store_true", dest="show_all", default=False, help="show all addresses")
|
||||
parser.add_option("-b", "--balance", action="store_true", dest="show_balance", default=False, help="show the balance at listed addresses")
|
||||
parser.add_option("-b", "--balance", action="store_true", dest="show_balance", default=False, help="show the balance of listed addresses")
|
||||
parser.add_option("-l", "--labels", action="store_true", dest="show_labels", default=False, help="show the labels of listed addresses")
|
||||
|
||||
parser.add_option("-f", "--fee", dest="tx_fee", default="0.005", help="set tx fee")
|
||||
|
|
|
@ -25,7 +25,7 @@ import bitcoin
|
|||
known_commands = {
|
||||
'help':'Prints this help',
|
||||
'validateaddress':'Check that the address is valid',
|
||||
'balance': "Display the balance of your wallet or of an address.\nSyntax: balance [<address>]",
|
||||
'getbalance': "Display the balance of your wallet or of an address.\nSyntax: getbalance [<address>]",
|
||||
'contacts': "Show your list of contacts",
|
||||
'create':'Create a wallet',
|
||||
'restore':'Restore a wallet',
|
||||
|
@ -189,7 +189,7 @@ class Commands:
|
|||
return out
|
||||
|
||||
|
||||
def balance(self, addresses = []):
|
||||
def getbalance(self, addresses = []):
|
||||
if addresses == []:
|
||||
c, u = self.wallet.get_balance()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue