electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8b252a7971202554553c2e4a3646723e18994a8f
parent b26af2494cf1b376940432d1c1c61603f1eae847
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 16 Mar 2012 20:24:37 +0300

Merge branch 'master' of gitorious.org:electrum/electrum

Diffstat:
Mclient/README | 7+++++++
Mclient/electrum | 2+-
Mclient/gui_qt.py | 6+++---
Mclient/wallet.py | 4++--
4 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/client/README b/client/README @@ -29,6 +29,7 @@ In order to use the gtk gui, you need pygtk and tk. * apt-get install python-gtk2 * apt-get install python-tk + RUN To start the Qt gui, type: @@ -43,6 +44,12 @@ Examples: +HELP + +the most up-to-date information is on the wiki: +https://en.bitcoin.it/wiki/Electrum + + BROWSER CONFIGURATION see http://ecdsa.org/bitcoin_URIs.html diff --git a/client/electrum b/client/electrum @@ -163,7 +163,7 @@ if __name__ == '__main__': cmd = 'help' # open session - if cmd not in ['password', 'mktx', 'history', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses']: + if cmd not in ['password', 'mktx', 'history', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses', 'import']: interface.start_session(wallet) interface.update_wallet(wallet) wallet.save() diff --git a/client/gui_qt.py b/client/gui_qt.py @@ -841,7 +841,7 @@ class ElectrumWindow(QMainWindow): import random status = "Please choose a server." host = random.choice( interface.servers ) - port = wallet.default_port + port = wallet.port d = QDialog(parent) d.setModal(1) @@ -870,7 +870,7 @@ class ElectrumWindow(QMainWindow): servers_list.setMaximumHeight(150) for item in wallet.interface.servers: servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] )) - servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':%d'%wallet.default_port )) + servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':%d'%wallet.port )) vbox.addWidget(servers_list) vbox.addLayout(ok_cancel_buttons(d)) @@ -885,7 +885,7 @@ class ElectrumWindow(QMainWindow): port = int(port) else: host = hh - port = wallet.default_port + port = wallet.port except: show_message("error") if parent == None: diff --git a/client/wallet.py b/client/wallet.py @@ -231,6 +231,7 @@ def format_satoshis(x, is_diff=False): from version import ELECTRUM_VERSION, SEED_VERSION +DEFAULT_PORT = 50000 class Wallet: @@ -263,7 +264,6 @@ class Wallet: self.imported_keys = {} self.remote_url = None - self.default_port = 50001 def set_server(self, host, port): @@ -560,7 +560,7 @@ class Wallet: f.close() except: self.host = '' - self.port = self.default_port + self.port = DEFAULT_PORT return try: d = ast.literal_eval( data )