implementing fromHeaderBlock.