Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest proofs #6006

Merged
merged 3 commits into from
Apr 13, 2021
Merged

Update to latest proofs #6006

merged 3 commits into from
Apr 13, 2021

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Apr 10, 2021

We need to test the whitelisted block thing.

  • Necessary test: Get a node with chain history going back to the 200ks, run lotus-shed sync validate bafy2bzaceapyg2uyzk7vueh3xccxkuwbz3nxewjyguoxvhx77malc2lzn2ybi bafy2bzaced5qjsl2jp4rlxjrwsxovyvayswsufxbst6yan7tijd27cktznxl6 bafy2bzaceb7syjfrkoy4yujiumrdvw23kchm2ilvjyul4yst3tkl7ce62royk bafy2bzacebruywjijmeqyrwsv7m3mtokjkibhgsoymsbopet4f7qzb2dkikkg bafy2bzaceber4ccef75m4ufhq27cxshtuj552c2g5e3psx62557b45it7d6qk. Should successfully validate.
  • (optional) Run a full chain validation (it's okay if it takes weeks, we just need to know).

@arajasek
Copy link
Contributor Author

Fixes #5816

@arajasek arajasek linked an issue Apr 10, 2021 that may be closed by this pull request
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks acceptable, but needs some more redundant review given what this touches

@magik6k
Copy link
Contributor

magik6k commented Apr 12, 2021

Verified manually by creating a node, importing those 2 snapshots:

@@ -81,3 +81,6 @@ const PropagationDelaySecs = uint64(6)

// BootstrapPeerThreshold is the minimum number peers we need to track for a sync worker to start
const BootstrapPeerThreshold = 4

// we skip checks on message validity in this block to sidestep the zero-bls signature
var WhitelistedBlock = MustParseCid("bafy2bzaceapyg2uyzk7vueh3xccxkuwbz3nxewjyguoxvhx77malc2lzn2ybi")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a set of WhitelistedBlocks and maybe a bitfield/object describing what checks are skipped? E.g.,

type SkippedChecks {
...
}
var WhitelistedBlocks map[cid.Cid]SkippedChecks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we plan to have more than one of those blocks ever

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course not.

@magik6k magik6k merged commit 335a2df into master Apr 13, 2021
@magik6k magik6k deleted the asr/proofs-update branch April 13, 2021 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to proofs 6.1.0
3 participants