GithubHelp home page GithubHelp logo

Schedule rewards show zero about core HOT 3 OPEN

bajtos avatar bajtos commented on July 18, 2024
Schedule rewards show zero

from core.

Comments (3)

bajtos avatar bajtos commented on July 18, 2024 1

I think the problem is caused by the fact that we wait for 10 minutes before we run getContractsWithRetry for the first time after startup.

Do you remember why we implemented it this way? I suspect that we wanted to avoid DDoSing w3name in case Station Core instances frequently restart. Or more precisely, if we frequently restart the main zinnia loop. Now that we moved contract updater outside of the main zinnia loop, I think we can change this behaviour.

A few more alternatives that come to my mind:

  • We can hard-code a seed list of contracts into Station Core source code.
  • Station Core can persist the list of contract addresses in a state file, so that we have a relative up-to-date list after restart.

from core.

juliangruber avatar juliangruber commented on July 18, 2024 1

I think the problem is caused by the fact that we wait for 10 minutes before we run getContractsWithRetry for the first time after startup.

This was so that when Voyager crashes, we don't fetch new contracts. Now that they are decoupled, and we would only fetch contracts when Core restarts, let's move the wait afterwards again. Will PR

from core.

juliangruber avatar juliangruber commented on July 18, 2024

#477

from core.

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.