Browse Source

commands: fix typo

rename "sec" to "privkey"
283
Roman Zeyde 10 years ago
parent
commit
daee02e22d
  1. 4
      lib/commands.py

4
lib/commands.py

@ -199,8 +199,8 @@ class Commands:
t = Transaction(tx) t = Transaction(tx)
t.deserialize() t.deserialize()
if privkey: if privkey:
pubkey = bitcoin.public_key_from_private_key(sec) pubkey = bitcoin.public_key_from_private_key(privkey)
t.sign({pubkey:sec}) t.sign({pubkey:privkey})
else: else:
self.wallet.sign_transaction(t, self.password) self.wallet.sign_transaction(t, self.password)
return t return t

Loading…
Cancel
Save