// TODO: this could result in a bad origin being selected if we are past the seq
ifpastSeqDrift{
// drift & should instead advance to the next origin.
returneth.L1BlockRef{},fmt.Errorf("cannot build next L2 block past current L1 origin %s by more than sequencer time drift, and failed to find next L1 origin: %w",currentOrigin,err)
log.Error("Failed to get next origin. Falling back to current origin","err",err)
}
iferrors.Is(err,ethereum.NotFound){
log.Debug("No next L1 block found, repeating current origin")
}else{
log.Error("Failed to get next origin. Falling back to current origin","err",err)