MCPcopy Create free account
hub / github.com/chain/Core / BlockHeader

Struct BlockHeader

protocol/bc/bc.pb.go:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275type BlockHeader struct {
276 Version uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
277 Height uint64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
278 PreviousBlockId *Hash `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
279 TimestampMs uint64 `protobuf:"varint,4,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
280 TransactionsRoot *Hash `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
281 AssetsRoot *Hash `protobuf:"bytes,6,opt,name=assets_root,json=assetsRoot" json:"assets_root,omitempty"`
282 NextConsensusProgram []byte `protobuf:"bytes,7,opt,name=next_consensus_program,json=nextConsensusProgram,proto3" json:"next_consensus_program,omitempty"`
283 ExtHash *Hash `protobuf:"bytes,8,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
284 WitnessArguments [][]byte `protobuf:"bytes,9,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
285}
286
287func (m *BlockHeader) Reset() { *m = BlockHeader{} }
288func (m *BlockHeader) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected