Skip to content

Commit d5dddac

Browse files
committed
Add ReplicaInfo
1 parent 047b8df commit d5dddac

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

FIPS/fip-0090.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,25 @@ Note that, same as with interactive PoRep, each sector has a `SealRandEpoch` tha
9797
- Introduce a new method `ProveCommitSectorsNI` (method 36), which performs a non-interactive proof for CC sectors, without a preceding PreCommitSector message (ie, this method rejects sectors that were already pre-committed. Such sectors must be activated with one of the existing ProveCommit methods). The method can be used with seal proofs or aggregate proof (but only one option can be chosen per call); the return type is the same as `ProveCommitAggregate`.
9898

9999
```go
100-
// Note no UnsealedCID because it must be "zero" data.
100+
// Note no UnsealedCID because it must be "zero" data.
101101
struct SectorNIActivationInfo {
102-
SectorNumber: SectorNumber,
102+
ReplicaInfo: ReplicaInfo
103103
SealedCID: Cid, // CommR
104104
SealRandEpoch: ChainEpoch,
105105
Expiration: ChainEpoch,
106106
}
107+
108+
// Organize information used in replica id
109+
// Included to avoid breaking change for future SealerActor FIP
110+
struct ReplicaInfo {
111+
// Sector number used to generate replica id
112+
// Must be set to SectorID
113+
SectorNumber: SectorNumber,
114+
// Sector number used as unique id in actor state
115+
SectorID: SectorNumber,
116+
// Must be set to ProviderID
117+
SealerID: ActorID
118+
}
107119

108120
struct ProveCommitSectorsNIParams {
109121
// Information about sealing of each sector.

0 commit comments

Comments
 (0)