diff --git a/gui/gtk.py b/gui/gtk.py index e5fae287..3273850a 100644 --- a/gui/gtk.py +++ b/gui/gtk.py @@ -1080,20 +1080,6 @@ class ElectrumWindow: button.show() hbox.pack_start(button,False) - button = gtk.Button("Prioritize") - def prioritize_address(w, treeview, liststore, wallet): - path, col = treeview.get_cursor() - if path: - address = liststore.get_value( liststore.get_iter(path), 0) - if address in wallet.prioritized_addresses: - wallet.unprioritize(address) - else: - wallet.prioritize(address) - self.update_receiving_tab() - button.connect("clicked", prioritize_address, treeview, liststore, self.wallet) - button.show() - hbox.pack_start(button,False) - if not is_recv: button = gtk.Button("Pay to") def payto(w, treeview, liststore): @@ -1153,7 +1139,6 @@ class ElectrumWindow: Type = "I" c, u = self.wallet.get_addr_balance(address) if address in self.wallet.frozen_addresses: Type = Type + "F" - if address in self.wallet.prioritized_addresses: Type = Type + "P" label = self.wallet.labels.get(address) h = self.wallet.history.get(address,[]) n = len(h) diff --git a/lib/commands.py b/lib/commands.py index f59b5d8f..2cf1996a 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -45,7 +45,6 @@ def register_command(*args): payto_options = ' --fee, -f: set transaction fee\n --fromaddr, -F: send from address -\n --changeaddr, -c: send change to address' listaddr_options = " -a: show all addresses, including change addresses\n -l: include labels in results" restore_options = " accepts a seed or master public key." -config_options = " accounts, addr_history, auto_cycle, column_widths, console-history, contacts,\n fee_per_kb, frozen_addresses, gap_limit, imported_keys, labels,\n master_public_key, num_zeros, prioritized_addresses, proxy, seed,\n seed_version, server, transactions, use_change, use_encryption, winpos-qt" mksendmany_syntax = 'mksendmanytx [ ...]' payto_syntax = "payto [label]\n can be a bitcoin address or a label" paytomany_syntax = "paytomany [ ...]\n can be a bitcoin address or a label" @@ -70,7 +69,7 @@ register_command('getbalance', 0, 1, True, True, False, 'Return the register_command('getservers', 0, 0, True, False, False, 'Return the list of available servers') register_command('getaddressbalance', 1, 1, True, True, False, 'Return the balance of an address', 'getbalance
') register_command('getaddresshistory', 1, 1, True, True, False, 'Return the transaction history of a wallet address', 'getaddresshistory
') -register_command('getconfig', 1, 1, False, False, False, 'Return a configuration variable', 'getconfig ', config_options) +register_command('getconfig', 1, 1, False, False, False, 'Return a configuration variable', 'getconfig ') register_command('getpubkeys', 1, 1, False, True, False, 'Return the public keys for a wallet address', 'getpubkeys ') register_command('getrawtransaction', 1, 2, True, False, False, 'Retrieve a transaction', 'getrawtransaction ') register_command('getseed', 0, 0, False, True, True, 'Print the generation seed of your wallet.') @@ -85,15 +84,13 @@ register_command('mksendmanytx', 4, 4, False, True, True, 'Create a si register_command('payto', 5, 5, True, True, True, 'Create and broadcast a transaction.', payto_syntax, payto_options) register_command('paytomany', 4, 4, True, True, True, 'Create and broadcast a transaction.', paytomany_syntax, payto_options) register_command('password', 0, 0, False, True, True, 'Change your password') -register_command('prioritize', 1, 1, False, True, False, 'Coins at prioritized addresses are spent first.', 'prioritize
') register_command('restore', 0, 0, True, True, False, 'Restore a wallet', '', restore_options) -register_command('setconfig', 2, 2, False, False, False, 'Set a configuration variable', 'setconfig ', config_options) +register_command('setconfig', 2, 2, False, False, False, 'Set a configuration variable', 'setconfig ') register_command('setlabel', 2,-1, False, True, False, 'Assign a label to an item', 'setlabel