get_seed -> check_password
This commit is contained in:
parent
98acf49b4e
commit
43d2fab9a0
|
@ -380,19 +380,15 @@ class Abstract_Wallet(object):
|
||||||
|
|
||||||
def signrawtransaction(self, tx, private_keys, password):
|
def signrawtransaction(self, tx, private_keys, password):
|
||||||
# check that the password is correct. This will raise if it's not.
|
# check that the password is correct. This will raise if it's not.
|
||||||
self.get_seed(password)
|
self.check_password(password)
|
||||||
|
|
||||||
# build a list of public/private keys
|
# build a list of public/private keys
|
||||||
keypairs = {}
|
keypairs = {}
|
||||||
|
|
||||||
# add private keys from parameter
|
# add private keys from parameter
|
||||||
for sec in private_keys:
|
for sec in private_keys:
|
||||||
pubkey = public_key_from_private_key(sec)
|
pubkey = public_key_from_private_key(sec)
|
||||||
keypairs[ pubkey ] = sec
|
keypairs[ pubkey ] = sec
|
||||||
|
|
||||||
# add private_keys
|
# add private_keys
|
||||||
self.add_keypairs(tx, keypairs, password)
|
self.add_keypairs(tx, keypairs, password)
|
||||||
|
|
||||||
# sign the transaction
|
# sign the transaction
|
||||||
self.sign_transaction(tx, keypairs, password)
|
self.sign_transaction(tx, keypairs, password)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue