fix: find common header between the header chain and the current body chain (#3033)
fix: find common header between the header chain and the current body chain (#3033)

* fix: find common header between the header chain and the current body chain

* add some code comments

yeastplume/grin,yeastplume/grin