Comments (11)
This solution was part of the specs but was never implemented.
from fips.
@sa8 - what is the current chance of getting a tie?
from fips.
@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.
@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.
from fips.
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.
@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 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.
@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.
Thanks for the heads up @arajasek!
Could you share some intuition why we want to prioritize bigger tipsets?
from fips.
@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.
This is now FIP0023!
from fips.
Related Issues (20)
- # TLDR HOT 2
- Weekly Governance Update (8 April 2022)
- Using a dedicated address for the sector-fault penalty HOT 1
- Optimize parallel PreCommit1 tasks speed HOT 1
- Cancellation of deposit HOT 1
- Cancellation of filecoin pledge HOT 1
- Create FIP draft for Decouple FIL+ HOT 6
- Some words to fil HOT 2
- FIP0029 terminology doesnt match the implementation HOT 1
- FIP-0029 missing definition of nominee
- FIP-0044: Verifreg: Consider modifying RemoveDataCapProposal HOT 4
- Update address for Filecoin Plus Registry HOT 1
- Allow account-level operators to set approval for tokens HOT 1
- broken links HOT 2
- FIP 104: Implement scaling payments for storage deals
- Where is the definition of 'FRC'? HOT 1
- Should we consider tagging segment and aggregate pieces differently ? HOT 1
- FIP001v2 Process Updates
- TESTS TSLT
- FIP 0075 contains an invalid `created` date in the frontmatter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fips.