Skip to content
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: miner: niporep params and cbor encoding vector tests #270

Merged
merged 7 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions abi/sector.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,16 @@ func (p RegisteredSealProof) ReplicaId(prover ActorID, sector SectorNumber, tick
return bytesIntoFr32Safe(s.Sum(nil)), nil
}

func (p RegisteredSealProof) IsSynthetic() bool {
_, ok := Synthetic[p]
return ok
}

func (p RegisteredSealProof) IsNonInteractive() bool {
_, ok := NonInteractive[p]
return ok
}

type ProverID [32]byte

// ProverID returns a 32 byte proverID used when computing ReplicaID
Expand Down
2 changes: 2 additions & 0 deletions builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ var MethodsMiner = struct {
// MovePartitionsExported abi.MethodNum
ProveCommitSectors3 abi.MethodNum
ProveReplicaUpdates3 abi.MethodNum
ProveCommitSectorsNI abi.MethodNum
}{
MethodConstructor,
2,
Expand Down Expand Up @@ -294,6 +295,7 @@ var MethodsMiner = struct {
// MovePartitions: 33,
34,
35,
36,
}

var MethodsVerifiedRegistry = struct {
Expand Down
2 changes: 2 additions & 0 deletions builtin/v14/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ func main() {
miner.ReplicaUpdate2{},
miner.ExpirationExtension2{},
miner.SectorClaim{},
miner.SectorNIActivationInfo{},
miner.ProveCommitSectorsNIParams{},
); err != nil {
panic(err)
}
Expand Down
Loading