mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix bug #1715
This commit is contained in:
parent
9659e8542d
commit
0e3c3b59c8
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ class Commands:
|
||||||
"""Sign a transaction. The wallet keys will be used unless a private key is provided."""
|
"""Sign a transaction. The wallet keys will be used unless a private key is provided."""
|
||||||
if privkey:
|
if privkey:
|
||||||
pubkey = bitcoin.public_key_from_private_key(privkey)
|
pubkey = bitcoin.public_key_from_private_key(privkey)
|
||||||
tx.sign({pubkey:privkey})
|
h160 = bitcoin.hash_160(pubkey.decode('hex'))
|
||||||
|
x_pubkey = 'fd' + (chr(0) + h160).encode('hex')
|
||||||
|
tx.sign({x_pubkey:privkey})
|
||||||
else:
|
else:
|
||||||
self.wallet.sign_transaction(tx, self._password)
|
self.wallet.sign_transaction(tx, self._password)
|
||||||
return tx.as_dict()
|
return tx.as_dict()
|
||||||
|
|
Loading…
Add table
Reference in a new issue