Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: 06d1236d490d5db07f7ba0b9b3428981b4fd3379
https://github.com/conformal/btcwire/commit/06d1236d490d5db07f7ba0b9b3428981b4fd3379
Author: Dave Collins <[email protected]>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
M blockheader.go
Log Message:
-----------
Add Serialize/Deserialize for BlockHeader.
This commit introduces two new functions for Blockheader named Serialize
and Deserialize. The functions provide a stable mechanism for serializing
and deserializing block headers to and from disk. The main benefit here
is deserialization of the header since typically only full blocks are
serialized to disk. Then when a header is needed, only the header portion
of the block is read and deserialized.