mock sealer: Simulate randomness sideeffects

This commit is contained in:
Łukasz Magiera 2021-03-12 17:33:43 +01:00
parent 06aaa668d6
commit d9923125ff

View File

@ -325,6 +325,8 @@ func (mgr *SectorMgr) GenerateWindowPoSt(ctx context.Context, minerID abi.ActorI
}
func generateFakePoStProof(sectorInfo []proof2.SectorInfo, randomness abi.PoStRandomness) []byte {
randomness[31] &= 0x3f
hasher := sha256.New()
_, _ = hasher.Write(randomness)
for _, info := range sectorInfo {