sector import: fix evaluating randomness when importing a sector passing SubmitCommit state
This commit is contained in:
parent
8ce69d1397
commit
9459c612fb
@ -123,7 +123,7 @@ func (m *Sealing) checkSectorMeta(ctx context.Context, meta api.RemoteSectorMeta
|
|||||||
if err := m.maddr.MarshalCBOR(maddrBuf); err != nil {
|
if err := m.maddr.MarshalCBOR(maddrBuf); err != nil {
|
||||||
return SectorInfo{}, xerrors.Errorf("marshal miner address for seed check: %w", err)
|
return SectorInfo{}, xerrors.Errorf("marshal miner address for seed check: %w", err)
|
||||||
}
|
}
|
||||||
rand, err := m.Api.StateGetRandomnessFromTickets(ctx, crypto.DomainSeparationTag_InteractiveSealChallengeSeed, meta.SeedEpoch, maddrBuf.Bytes(), ts.Key())
|
rand, err := m.Api.StateGetRandomnessFromBeacon(ctx, crypto.DomainSeparationTag_InteractiveSealChallengeSeed, meta.SeedEpoch, maddrBuf.Bytes(), ts.Key())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return SectorInfo{}, xerrors.Errorf("generating check seed: %w", err)
|
return SectorInfo{}, xerrors.Errorf("generating check seed: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user