Band-aid for Issue #1282.

pull/1283/head
Kieran Prasch 2019-08-30 12:22:45 -07:00
parent 9fa1dcc9e4
commit 6eed3a28b5
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 5 additions and 2 deletions

View File

@ -313,9 +313,12 @@ class GethClient(Web3Client):
return True
debug_message = f"Unlocking account {address}"
if password is None:
debug_message += " without a password."
debug_message += " with no password."
self.log.debug(debug_message)
return self.w3.geth.personal.unlockAccount(address, password)
# TODO: #1282 - Handle account unlock duration
ONE_YEAR_IN_SECONDS = ((60 * 60) * 24) * 365
return self.w3.geth.personal.unlockAccount(address, password, duration=ONE_YEAR_IN_SECONDS*10)
def sign_transaction(self, transaction: dict) -> bytes: