diff --git a/chain/sync.go b/chain/sync.go index a00767b73..1b12ff2da 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -632,7 +632,7 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) (er defer span.End() if build.InsecurePoStValidation { - log.Warn("insecure test validation is enabled, if you see this outside of a test, it is a severe bug!") + log.Warn("[INSECURE-POST-VALIDATION] if you see this outside of a test, it is a severe bug!") } if err := blockSanityChecks(b.Header); err != nil { @@ -863,13 +863,13 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) (er func (syncer *Syncer) VerifyWinningPoStProof(ctx context.Context, h *types.BlockHeader, prevBeacon types.BeaconEntry, lbst cid.Cid, waddr address.Address) error { if build.InsecurePoStValidation { if len(h.WinPoStProof) == 0 { - return xerrors.Errorf("[TESTING] No winning post proof given") + return xerrors.Errorf("[INSECURE-POST-VALIDATION] No winning post proof given") } if string(h.WinPoStProof[0].ProofBytes) == "valid proof" { return nil } - return xerrors.Errorf("[TESTING] winning post was invalid") + return xerrors.Errorf("[INSECURE-POST-VALIDATION] winning post was invalid") } buf := new(bytes.Buffer) diff --git a/storage/miner.go b/storage/miner.go index a0e2c9225..1820801b7 100644 --- a/storage/miner.go +++ b/storage/miner.go @@ -179,7 +179,7 @@ func (wpp *StorageWpp) GenerateCandidates(ctx context.Context, randomness abi.Po func (wpp *StorageWpp) ComputeProof(ctx context.Context, ssi []abi.SectorInfo, rand abi.PoStRandomness) ([]abi.PoStProof, error) { if build.InsecurePoStValidation { - log.Warn("Generating fake EPost proof! You should only see this while running tests!") + log.Warn("[INSECURE-POST-VALIDATION] Generating fake PoSt proof! You should only see this while running tests!") return []abi.PoStProof{{ProofBytes: []byte("valid proof")}}, nil }