Git Product home page Git Product logo

Comments (10)

AlexanderC avatar AlexanderC commented on May 22, 2024 1

@namanyayg check this out:

def tweak_chain(project, deployment_name):
    with project.get_chain(deployment_name) as chain:
        chain.wait.timeout = 9999

# in deploy contracts.py -> def main(deployment_file, deployment_name, address):

project = Project()

tweak_chain(project, deployment_name) # <-- here we go!

from smart-contracts.

AlexanderC avatar AlexanderC commented on May 22, 2024

I'm facing the same issue guys. Token Market team, can you give us a hint or something?

from smart-contracts.

namanyayg avatar namanyayg commented on May 22, 2024

@AlexanderC Thanks! Looks like this would work -- I managed to deploy all my contracts soon after Byzantium when my timeouts stopped coming (due to faster mining times perhaps?)

Would appreciate an official update from TokenMarketNet team, but I think we can close this.

from smart-contracts.

ryanmmmmm avatar ryanmmmmm commented on May 22, 2024

i get these timeouts all the time.. do i really need to patch the code in this way as a workaround?

from smart-contracts.

miohtama avatar miohtama commented on May 22, 2024

The problem is that the current Populus version does not support setting timeout when deploying linked contracts (contracts having libraries in them that need to be deployed). So far we have fixed this by just hardcoding a different timeout in Populus. Last time I checked @petri and @voith might have a patch coming in.

from smart-contracts.

voith avatar voith commented on May 22, 2024

Yes, I'll be working on this today!

from smart-contracts.

voith avatar voith commented on May 22, 2024

I have opened ethereum/populus#464 to fix this issue.

from smart-contracts.

voith avatar voith commented on May 22, 2024

Need #134 merged to fix this issue as the fix submitted upstream needs populus from the master branch. Once #134 is merged I'll submit a PR to increase the timeout in project.json.

from smart-contracts.

 avatar commented on May 22, 2024

@AlexanderC mate this proposed solution does not solve the issue either, what else can be tried in the interim or is a solution released for it ? thanks

also note this will only even execute if the deployment_name is same as the chain name

def tweak_chain(project, deployment_name):
    with project.get_chain(deployment_name) as chain:
        chain.wait.timeout = 9999

in deploy contracts.py -> def main(deployment_file, deployment_name, address):

project = Project()

tweak_chain(project, deployment_name) # <-- here we go!

from smart-contracts.

 avatar commented on May 22, 2024

in the interim the workaround was to change the timeout values in the following files
/usr/local/lib/python3.5/dist-packages/populus/wait.py
/usr/local/lib/python3.5/dist-packages/populus/utils/wait.py

from smart-contracts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.