-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: lotus-provider: WinningPoSt support #11410
Conversation
9112693
to
8744312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit about config consistency
log.Warnw("mined block in the past", | ||
"block-time", btime, "time", build.Clock.Now(), "difference", build.Clock.Since(btime)) | ||
} | ||
|
||
// Check for slash filter conditions. | ||
if os.Getenv("LOTUS_MINER_NO_SLASHFILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" && !build.IsNearUpgrade(base.TipSet.Height(), build.UpgradeWatermelonFixHeight) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this os.GetEnv() be replaced with a config in the database?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is an extremely dangerous only-for-testing flag, doesn’t belong in user config
@@ -161,7 +175,7 @@ environment variable LOTUS_WORKER_WINDOWPOST. | |||
} | |||
|
|||
if !lo.Contains(titles, "base") { | |||
_, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '')", "base") | |||
_, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '')") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should have the migrator enable:
lpCfg.Subsystems.EnableWinningPost = true
And add a comment about diabling it in lotus-miner
Orjan mentioned: "null-blocks and a couple of other blockchain edge-cases". Be sure that's covered before merging since feat/sturdypost is planned for 1.25.1. |
Related Issues
Closes #11392
Closes #11383
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps