d8ca684260
* fix: in case of all known for Headers received, update sync_head to the last header * refactor: push this logic down into pipe