Skip to content

Commit 207aeac

Browse files
committed
Disable hash match checking completely.
1 parent f02874b commit 207aeac

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nil/services/synccommittee/prover/tracer/tracer_nild_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ func (s *TracerNildTestSuite) checkBlocksRangeTracesSerialization(from []types.B
296296
if errors.Is(err, ErrCantProofGenesisBlock) {
297297
continue
298298
}
299+
s.Require().NoError(err)
299300
mptTraces, err := tracer.GetMPTTraces()
300301
s.Require().NoError(err)
301302
traces.SetMptTraces(&mptTraces)

nil/services/synccommittee/prover/tracer/traces_collector.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ func (tc *remoteTracesCollectorImpl) executeBlockAndCollectTraces(
244244
// Validate generated block hash matches expected
245245
expectedHash := currentBlock.Hash(shardId)
246246
if generatedBlock.BlockHash != expectedHash {
247-
return nil, fmt.Errorf("%w: expected hash: %s, generated hash: %s",
248-
ErrTracedBlockHashMismatch, expectedHash, generatedBlock.BlockHash)
247+
// FIXME: hash mismatch should be handled
248+
tc.logger.Error().Msgf("hash mismatch: expected hash: %s, generated hash: %s",
249+
expectedHash, generatedBlock.BlockHash)
249250
}
250251

251252
return esTracer.Traces, nil

0 commit comments

Comments
 (0)