Skip to content

Commit

Permalink
Merge pull request #11123 from mtrisic/fix/sector-import-randomness-m…
Browse files Browse the repository at this point in the history
…ismatch

sector import: fix evaluating randomness when importing a sector
  • Loading branch information
magik6k committed Aug 1, 2023
2 parents 8ce69d1 + 9459c61 commit 9b4992b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/pipeline/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (m *Sealing) checkSectorMeta(ctx context.Context, meta api.RemoteSectorMeta
if err := m.maddr.MarshalCBOR(maddrBuf); err != nil {
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 {
return SectorInfo{}, xerrors.Errorf("generating check seed: %w", err)
}
Expand Down

0 comments on commit 9b4992b

Please sign in to comment.