Modify the algorithm of updateFinalizedBlockRoots
#13486
Merged
updateFinalizedBlockRoots
#13486