mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +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 {
|
||||
log.Error("fill mpt witness fail", "error", err)
|
||||
// only zktrie model has the ability to get `mptwitness`.
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue