code: func (b *BlockHeader) toIndexEntry() headerEntry {
  	return headerEntry{
  		hash:   b.BlockHash(),
  		height: b.Height,
  	}
  }
docs: // toIndexEntry converts the BlockHeader into a matching headerEntry. This
  // method is used when a header is to be written to disk.