Merge pull request #3 from wozz/trezor_plugin
Remove extra variable that isn't needed
This commit is contained in:
commit
3639585a75
|
@ -1,4 +1,4 @@
|
||||||
from PyQt4.Qt import QMessageBox, QDialog, QVBoxLayout, QLabel, QThread, SIGNAL, QObject
|
from PyQt4.Qt import QMessageBox, QDialog, QVBoxLayout, QLabel, QThread, SIGNAL
|
||||||
from binascii import unhexlify
|
from binascii import unhexlify
|
||||||
from struct import pack
|
from struct import pack
|
||||||
from sys import stderr
|
from sys import stderr
|
||||||
|
@ -28,8 +28,6 @@ def log(msg):
|
||||||
stderr.write("%s\n" % msg)
|
stderr.write("%s\n" % msg)
|
||||||
stderr.flush()
|
stderr.flush()
|
||||||
|
|
||||||
gl_emitter = QObject()
|
|
||||||
|
|
||||||
class Plugin(BasePlugin):
|
class Plugin(BasePlugin):
|
||||||
|
|
||||||
def fullname(self): return 'Trezor Wallet'
|
def fullname(self): return 'Trezor Wallet'
|
||||||
|
@ -180,7 +178,7 @@ class TrezorWallet(NewWallet):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
raise e
|
raise e
|
||||||
finally:
|
finally:
|
||||||
gl_emitter.emit(SIGNAL('trezor_done'))
|
twd.emit(SIGNAL('trezor_done'))
|
||||||
values = [i['value'] for i in tx.inputs]
|
values = [i['value'] for i in tx.inputs]
|
||||||
raw = signed_tx.encode('hex')
|
raw = signed_tx.encode('hex')
|
||||||
tx.update(raw)
|
tx.update(raw)
|
||||||
|
@ -365,7 +363,7 @@ class TrezorWaitingDialog(QThread):
|
||||||
self.d.show()
|
self.d.show()
|
||||||
if not self.waiting:
|
if not self.waiting:
|
||||||
self.waiting = True
|
self.waiting = True
|
||||||
self.d.connect(gl_emitter, SIGNAL('trezor_done'), self.stop)
|
self.d.connect(twd, SIGNAL('trezor_done'), self.stop)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.d.hide()
|
self.d.hide()
|
||||||
|
|
Loading…
Reference in New Issue