Skip to content

Commit 1675790

Browse files
author
colinlyguo
committed
add a fixme
1 parent c63e349 commit 1675790

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eth/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ func generateWitness(blockchain *core.BlockChain, block *types.Block) (*stateles
369369
return nil, fmt.Errorf("failed to validate block %d: %w", block.Number(), err)
370370
}
371371

372+
// FIXME: testWitness will fail from time to time, the problem is caused by occasional state root mismatch
373+
// after processing the block based on witness. We need to investigate the root cause and fix it.
372374
for retries := 0; retries < 5; retries++ {
373375
if err = testWitness(blockchain, block, witness); err == nil {
374376
return witness, nil

0 commit comments

Comments
 (0)