Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Implement off-chain Window PoSt verification (#1327)
Browse files Browse the repository at this point in the history
This patch implements two changes:

1. New Window PoSts, except those that restore faulty sectors, are
   optimistically accepted, assumed correct, and recorded in the
   state-tree for one proving period.
2. Optimistically accepted window posts can be disputed until
   `WPoStProofDisputeWindow` epochs after the challenge window in which
   they were submitted closes. When a dispute successfully refutes an
   optimistically accepted Window PoSt, the miner is fined one IPF per
   active sector in the partition (at the moment when the proof was
   submitted) plus a flat fee of 20FIL, all incorrectly proved sectors
   are marked faulty, and the disputer (address that submitted the
   dispute) is rewarded a fixed `DipsuteReward`.
  • Loading branch information
Stebalien authored Jan 15, 2021
1 parent 3fcae08 commit be9804e
Show file tree
Hide file tree
Showing 16 changed files with 1,412 additions and 145 deletions.
3 changes: 2 additions & 1 deletion actors/builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ var MethodsMiner = struct {
ConfirmUpdateWorkerKey abi.MethodNum
RepayDebt abi.MethodNum
ChangeOwnerAddress abi.MethodNum
}{MethodConstructor, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}
DisputeWindowedPoSt abi.MethodNum
}{MethodConstructor, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}

var MethodsVerifiedRegistry = struct {
Constructor abi.MethodNum
Expand Down
240 changes: 233 additions & 7 deletions actors/builtin/miner/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be9804e

Please sign in to comment.