-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f27d54b
feat: lpwinning: Initial task layout
magik6k f4d8671
lpwinning: More scribbling around adder
magik6k f30a7db
lpwinning: adder done
magik6k 49c56e4
lpwinning: basic CanAccept
magik6k b9625da
lpwinning: implement WinPostTask.Do
magik6k 2a4ce7d
lpwinning: wire up winningPoSt
magik6k d719db3
lpwinning: fix PoSt prover gen
magik6k 8b41013
lpwindow: Fix recover schema
magik6k f2ef006
lotus-miner: add config for disabling winning post
magik6k 8744312
lotus-provider: Make from-miner work offline
magik6k 7efc4e4
lotus-provider: Somewhat less broken from-miner
magik6k 339e062
lotus-provider: Encode storage rpc secret correctly in from-miner
magik6k 30cf227
lpwinning: select lowest epoch task id for mining task
magik6k aa87f3c
lpwinning: Make block production work
magik6k 10032a1
lpwinning: Handle null-block mining more correctly
magik6k 63b130a
lpwinning: limit new base rate
magik6k 68cef72
migrate-fix
snadrus 1a9e3cf
Merge pull request #11418 from filecoin-project/sturdy-migrate-fixes
magik6k 98099cc
harmonytask: remember machine
snadrus aed9a6d
sql startup fix, better errors
magik6k c1edae6
gen fix
snadrus 9b4a3ba
fix circleci and fiximports
snadrus 0d90430
better storageRpcSecret errormsg
snadrus 3947327
mod tidy
magik6k fceabdb
make gen
magik6k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ | |
# type: bool | ||
#EnableWinningPost = false | ||
|
||
# type: int | ||
#WinningPostMaxTasks = 0 | ||
|
||
|
||
[Fees] | ||
# type: types.FIL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
create table mining_tasks | ||
snadrus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
( | ||
task_id bigint not null | ||
constraint mining_tasks_pk | ||
primary key, | ||
sp_id bigint not null, | ||
epoch bigint not null, | ||
base_compute_time timestamp not null, | ||
|
||
won bool not null default false, | ||
mined_cid text, | ||
mined_header jsonb, | ||
mined_at timestamp, | ||
|
||
submitted_at timestamp, | ||
|
||
constraint mining_tasks_sp_epoch | ||
unique (sp_id, epoch) | ||
); | ||
|
||
create table mining_base_block | ||
( | ||
id bigserial not null | ||
constraint mining_base_block_pk | ||
primary key, | ||
task_id bigint not null | ||
constraint mining_base_block_mining_tasks_task_id_fk | ||
references mining_tasks | ||
on delete cascade, | ||
sp_id bigint, | ||
block_cid text not null, | ||
|
||
no_win bool not null default false, | ||
|
||
constraint mining_base_block_pk2 | ||
unique (sp_id, task_id, block_cid) | ||
); | ||
|
||
CREATE UNIQUE INDEX mining_base_block_cid_k ON mining_base_block (sp_id, block_cid) WHERE no_win = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE harmony_task_history ADD COLUMN completed_by_host_and_port varchar(300) NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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