Added description of fields in relay Header
@@ -14,10 +14,16 @@ type Handle interface {
// Header represents a Bitcoin block header.
type Header struct {
+ // Hash is the hash of the block
Hash [32]byte
+ // Height is the height of the block in the blockchain
Height int64
+ // PrevHash is the hash of the previous block
PrevHash [32]byte
+ // MerkleRoot is the hash of the root of the Merkle tree of transcations in
+ // the block
MerkleRoot [32]byte
+ // Raw is the serialized data of the block header; 80-bytes long
Raw []byte
}
