Commit d627f118 authored by Axel Kingsley's avatar Axel Kingsley Committed by GitHub

interop: correct error in prior WithParent commit (#12832)

parent 39e6e6f6
...@@ -246,7 +246,7 @@ func (db *ChainsDB) CandidateCrossSafe(chain types.ChainID) (derivedFromScope, c ...@@ -246,7 +246,7 @@ func (db *ChainsDB) CandidateCrossSafe(chain types.ChainID) (derivedFromScope, c
derivedFromRef = derivedFrom.ForceWithParent(eth.BlockID{}) derivedFromRef = derivedFrom.ForceWithParent(eth.BlockID{})
} }
// the first derived must be the genesis block, panic otherwise // the first derived must be the genesis block, panic otherwise
derivedRef := derived.MustWithParent(derivedFrom.ID()) derivedRef := derived.MustWithParent(eth.BlockID{})
return derivedFromRef, derivedRef, nil return derivedFromRef, derivedRef, nil
} }
return eth.BlockRef{}, eth.BlockRef{}, err return eth.BlockRef{}, eth.BlockRef{}, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment