code: def stream_header_legacy(self, f):
          
          stream_struct("L##LL", f, self.version, self.previous_block_hash,
                        self.merkle_root, self.timestamp, self.difficulty)
          f.write(self.nonce[:4])
docs: Stream the block header in the standard way to the file-like object f.