GithubHelp home page GithubHelp logo

Comments (3)

ansermino avatar ansermino commented on July 17, 2024

fn ticket_from_round // returns the ticket that is at round 'r' in the chain behind 'head'

seems we need some notion of round. Any thoughts on whats needed for this?

fn add_losing_ticket // adds the losing ticket to the chaintips manager so that blocks can be mined on top of it

why loosing ticket?

from forest.

dutterbutter avatar dutterbutter commented on July 17, 2024

Based on the specification, it seems they are using the term round interchangeably with epoch. They define an epoch as:

An epoch refers to the period over which a given random seed is used in Expected Consensus.
In the current Filecoin implementation, each round is an epoch.

@austinabell has stubbed ChainEpoch in ferret/vm/src/runtime/mod.rs but looks like it still needs to be formally defined.

As for the losing ticket I am not sure why they are referring it to as losing...based on everything else I've read it should be the winning ticket that blocks are mined on top of BUT the ChainTipsManager in the spec indicates losing...

from forest.

dutterbutter avatar dutterbutter commented on July 17, 2024

Closing this issue as I believe this to be essentially the TipIndex tracker, just the wording chosen in the spec is poor. For example, tipset_from_round is essentially get_tipset_by_epoch which is included in #113

from forest.

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.