Skip to content

Commit 7b317fa

Browse files
authored
feat(v16): avoid seralizing the deprecated deal IDs field (#374)
I've left the FIP0098 fields as they'll remain relevant until the upgrade. But the deal IDs are now totally dead.
1 parent 915c5d0 commit 7b317fa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

builtin/v16/miner/miner_state.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,18 @@ type SectorOnChainInfo struct {
169169
SectorNumber abi.SectorNumber
170170
SealProof abi.RegisteredSealProof // The seal proof type implies the PoSt proof/s
171171
SealedCID cid.Cid // CommR
172-
DeprecatedDealIDs []abi.DealID
173-
Activation abi.ChainEpoch // Epoch during which the sector proof was accepted
174-
Expiration abi.ChainEpoch // Epoch during which the sector expires
175-
DealWeight abi.DealWeight // Integral of active deals over sector lifetime
176-
VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime
177-
InitialPledge abi.TokenAmount // Pledge collected to commit this sector
178-
ExpectedDayReward *abi.TokenAmount // Expected one day projection of reward for sector computed at activation time
179-
ExpectedStoragePledge *abi.TokenAmount // Expected twenty day projection of reward for sector computed at activation time
180-
PowerBaseEpoch abi.ChainEpoch // Epoch at which this sector's power was most recently updated
181-
ReplacedDayReward *abi.TokenAmount // Day reward of this sector before its power was most recently updated
182-
SectorKeyCID *cid.Cid // The original SealedSectorCID, only gets set on the first ReplicaUpdate
183-
Flags SectorOnChainInfoFlags // Additional flags
172+
DeprecatedDealIDs []abi.DealID `json:"-"`
173+
Activation abi.ChainEpoch // Epoch during which the sector proof was accepted
174+
Expiration abi.ChainEpoch // Epoch during which the sector expires
175+
DealWeight abi.DealWeight // Integral of active deals over sector lifetime
176+
VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime
177+
InitialPledge abi.TokenAmount // Pledge collected to commit this sector
178+
ExpectedDayReward *abi.TokenAmount // Expected one day projection of reward for sector computed at activation time
179+
ExpectedStoragePledge *abi.TokenAmount // Expected twenty day projection of reward for sector computed at activation time
180+
PowerBaseEpoch abi.ChainEpoch // Epoch at which this sector's power was most recently updated
181+
ReplacedDayReward *abi.TokenAmount // Day reward of this sector before its power was most recently updated
182+
SectorKeyCID *cid.Cid // The original SealedSectorCID, only gets set on the first ReplicaUpdate
183+
Flags SectorOnChainInfoFlags // Additional flags
184184
// The total fee payable per day for this sector. The value of this field is set at the time of
185185
// sector activation, extension and whenever a sector's QAP is changed. This fee is payable for
186186
// the lifetime of the sector and is aggregated in the deadline's `daily_fee` field.

0 commit comments

Comments
 (0)