commands: fix typo

rename "sec" to "privkey"
This commit is contained in:
Roman Zeyde 2015-07-01 18:15:35 +03:00
parent 9c06bee8c7
commit daee02e22d
1 changed files with 2 additions and 2 deletions

View File

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