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

Add ReplicaInfo to fip-0090 #1000

Merged
merged 4 commits into from
May 9, 2024
Merged
Changes from 3 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
14 changes: 13 additions & 1 deletion FIPS/fip-0090.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,23 @@ Note that, same as with interactive PoRep, each sector has a `SealRandEpoch` tha
```go
// Note no UnsealedCID because it must be "zero" data.
struct SectorNIActivationInfo {
SectorNumber: SectorNumber,
ReplicaInfo: ReplicaInfo
SealedCID: Cid, // CommR
ZenGround0 marked this conversation as resolved.
Show resolved Hide resolved
SealRandEpoch: ChainEpoch,
Expiration: ChainEpoch,
}

// Organize information used in replica id
// Included to avoid breaking change for future SealerActor FIP
struct ReplicaInfo {
// Sector number used to generate replica id
// Must be set to SectorID
SealingNumber: SectorNumber,
// Sector number used as unique id in actor state
SectorID: SectorNumber,
ZenGround0 marked this conversation as resolved.
Show resolved Hide resolved
// Must be set to ProviderID
ZenGround0 marked this conversation as resolved.
Show resolved Hide resolved
SealerID: ActorID
jennijuju marked this conversation as resolved.
Show resolved Hide resolved
ZenGround0 marked this conversation as resolved.
Show resolved Hide resolved
}

struct ProveCommitSectorsNIParams {
// Information about sealing of each sector.
Expand Down
Loading