Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { UUID uint64 Height int32 PrevBlock chainhash.Hash Bits Diffs Merkles Merkles Timestamp time.Time // contains filtered or unexported fields }
Message describes a message that a mining worker can use to construct a block to mine on.
func DeserializeMsgBlockTemplate ¶
DeserializeMsgBlockTemplate takes a message expected to be a Message and reconstitutes it
func (*Message) GenBlockHeader ¶
func (m *Message) GenBlockHeader(vers int32) *wire.BlockHeader
GenBlockHeader generate a block given a version number to use for mining The nonce is empty, date can be updated, version changes merkle and target bits. All the data required for this is in the exported fields that are serialized for over the wire
func (*Message) Reconstruct ¶
Reconstruct takes a received block from the wire and reattaches the transactions
Click to show internal directories.
Click to hide internal directories.