GithubHelp home page GithubHelp logo

Comments (11)

sa8 avatar sa8 commented on August 25, 2024

This solution was part of the specs but was never implemented.

from fips.

momack2 avatar momack2 commented on August 25, 2024

@sa8 - what is the current chance of getting a tie?

from fips.

sa8 avatar sa8 commented on August 25, 2024

@momack2 I don't know, I'll need to ask Sentinel to check. I think that "small" forks happen quite often but don't have numbers.

from fips.

steven004 avatar steven004 commented on August 25, 2024

@sa8 - what is the current chance of getting a tie?

An example how a fork could get a tie:

Let's suppose the network power keeps the same in certain time across several heights, when there is a network issue, perhaps propagation delay of something, there are 3 blocks at height n, A1, A2, A3 (all valid and with the same parents), and 3 blocks at height n+1, B1, B2, B3, B4, B5, but like the following:

  (A1 + A2) <- (B1, B2, B3)
  (A1 + A2 + A3) <- (B4, B5) 

And then, at height n+2, it will be found that the two tipsets (B1, B2, B3) and (B4, B5) have the same weight. It's a tie.

@momack2

from fips.

steven004 avatar steven004 commented on August 25, 2024

A proposal of solution

To compare the ticket value is one way to do it, but it looks a little complicated. Another way is to revise the weight algorithm which is already complex, to add in a bias, like adding the height number into the calculation.

w[r] = original_w[r] + block_num * (height % H)

H might be 2^8 or something.

from fips.

sa8 avatar sa8 commented on August 25, 2024

@steven004 I think it's quite obvious for everyone what a tie looks like... the question is given current network conditions how often this happens.

from fips.

steven004 avatar steven004 commented on August 25, 2024

@steven004 I think it's quite obvious for everyone what a tie looks like... the question is given current network conditions how often this happens.

I would think it's hard to get an answer, since it depends on a lot of things, network quality, number of miners, chain syncing performance, etc. What we could see is: the better the networker running, the less chance to get a tie.
For me, I found twice in test network when I simply check chain status for perhaps 1000 heights, but, the test net was not runnig as good as the mainnet.

What I propose is to reduce the chance to almost 0, no matter how well the network is running.

from fips.

arajasek avatar arajasek commented on August 25, 2024

@sa8 FIP PR opened here: #156.

I added a higher priority rule for equal-weight tipsets of unequal sizes (choose the bigger tipset). Please let me know if you think that makes sense.

from fips.

sa8 avatar sa8 commented on August 25, 2024

Thanks for the heads up @arajasek!
Could you share some intuition why we want to prioritize bigger tipsets?

from fips.

arajasek avatar arajasek commented on August 25, 2024

@sa8 I don't think we necessarily want to prioritize bigger tipsets, this just felt cleaner to me in the unequal size case. Otherwise, we keep comparing the tickets until we reach the end of the smaller tipset (assuming they are all equal tickets) and then based on the spec, it's unclear to me what we should do.

from fips.

kaitlin-beegle avatar kaitlin-beegle commented on August 25, 2024

This is now FIP0023!

from fips.

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.