Skip to content

Commit

Permalink
Be more liberal with gas price to speed up things.
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed May 16, 2018
1 parent af9e3a7 commit 579ff96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ico/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def deploy_contract(project: Project, chain, deploy_address, contract_def: dict,
request_account_unlock(chain, deploy_address, timeout=3600)

# Use non-default gas price for speedier processing
gas_price = int(web3.eth.gasPrice * 1.2)
gas_price = int(web3.eth.gasPrice * 2)

transaction = {"from": deploy_address, "gasPrice": gas_price}
kwargs = dict(**contract_def["arguments"]) # Unwrap YAML CommentedMap

print("Starting", contract_name, "deployment, with arguments ", kwargs)
print("Starting", contract_name, "deployment, with arguments ", kwargs, "gas price is", gas_price / (10**9), "GWei")

# TODO: Workaround when deploying the same contract twice in run,
# because Populus contract_identity allows only one contract_identity per contract class
Expand Down

0 comments on commit 579ff96

Please sign in to comment.