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

Commit

Permalink
Implemented PreCommitSectorBatch method (FIP-0008) (#1407)
Browse files Browse the repository at this point in the history
Implements a new PreCommitSectorBatch method, as specified by FIP-0008

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 authored May 14, 2021
1 parent d729341 commit 418e07d
Show file tree
Hide file tree
Showing 9 changed files with 779 additions and 175 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 418e07d

Please sign in to comment.