mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
avoid the unexpected situation (#163)
This commit is contained in:
parent
3a7da33cd5
commit
ca2e576d81
1 changed files with 5 additions and 2 deletions
|
|
@ -356,8 +356,11 @@ func (api *API) fillBlockResult(env *traceEnv, block *types.Block) (*types.Block
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := zkproof.FillBlockResultForMPTWitness(zkproof.MPTWitnessType(api.backend.CacheConfig().MPTWitness), blockResult); err != nil {
|
// only zktrie model has the ability to get `mptwitness`.
|
||||||
log.Error("fill mpt witness fail", "error", err)
|
if api.backend.ChainConfig().Zktrie {
|
||||||
|
if err := zkproof.FillBlockResultForMPTWitness(zkproof.MPTWitnessType(api.backend.CacheConfig().MPTWitness), blockResult); err != nil {
|
||||||
|
log.Error("fill mpt witness fail", "error", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockResult, nil
|
return blockResult, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue