Skip to content

Commit 05b09a0

Browse files
committed
remove proof check, that's not used for binary trees
Signed-off-by: Guillaume Ballet <[email protected]>
1 parent a62b805 commit 05b09a0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

core/chain_makers.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,6 @@ func GenerateVerkleChain(config *params.ChainConfig, parent *types.Block, engine
431431
keyvals = append(keyvals, block.ExecutionWitness().StateDiff)
432432
proots = append(proots, parent.Root())
433433

434-
// quick check that we are self-consistent
435-
err = verkle.Verify(block.ExecutionWitness().VerkleProof, block.ExecutionWitness().ParentStateRoot[:], block.Root().Bytes(), block.ExecutionWitness().StateDiff)
436-
if err != nil {
437-
panic(err)
438-
}
439-
440434
return block, b.receipts
441435
}
442436
return nil, nil
@@ -446,7 +440,7 @@ func GenerateVerkleChain(config *params.ChainConfig, parent *types.Block, engine
446440
db.StartVerkleTransition(common.Hash{}, common.Hash{}, config, config.VerkleTime, common.Hash{})
447441
db.EndVerkleTransition()
448442
db.SaveTransitionState(parent.Root())
449-
for i := 0; i < n; i++ {
443+
for i := range n {
450444
statedb, err := state.New(parent.Root(), db, snaps)
451445
if err != nil {
452446
panic(fmt.Sprintf("could not find state for block %d: err=%v, parent root=%x", i, err, parent.Root()))

0 commit comments

Comments
 (0)