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

Commit

Permalink
Implements a new PreCommitSectorBatch method, as specified by FIP-000…
Browse files Browse the repository at this point in the history
…8 (discussion)

The non-batched PreCommitSector method remains, but should be considered deprecated.
The implementation delegates internally to the batched method.
This consumes less gas than before this change (due to removal of redundant checks in
the batched method) but is slightly less efficient at runtime than a strictly-optimized
singleton method could be. I expect it to be removed in the future.
  • Loading branch information
anorth committed May 13, 2021
1 parent d729341 commit a22763b
Show file tree
Hide file tree
Showing 8 changed files with 758 additions and 167 deletions.
3 changes: 2 additions & 1 deletion actors/builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ var MethodsMiner = struct {
RepayDebt abi.MethodNum
ChangeOwnerAddress abi.MethodNum
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}
PreCommitSectorBatch 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, 25}

var MethodsVerifiedRegistry = struct {
Constructor abi.MethodNum
Expand Down
80 changes: 80 additions & 0 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 a22763b

Please sign in to comment.