BlockHeader is the header of a Block: everything except the block's transactions and predicate args.
| 185 | // BlockHeader is the header of a Block: everything except the block's |
| 186 | // transactions and predicate args. |
| 187 | type BlockHeader struct { |
| 188 | Version uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` |
| 189 | Height uint64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` |
| 190 | PreviousBlockId *Hash `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"` |
| 191 | TimestampMs uint64 `protobuf:"varint,4,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"` |
| 192 | Runlimit int64 `protobuf:"varint,5,opt,name=runlimit" json:"runlimit,omitempty"` |
| 193 | RefsCount int64 `protobuf:"varint,6,opt,name=refs_count,json=refsCount" json:"refs_count,omitempty"` |
| 194 | TransactionsRoot *Hash `protobuf:"bytes,7,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"` |
| 195 | ContractsRoot *Hash `protobuf:"bytes,8,opt,name=contracts_root,json=contractsRoot" json:"contracts_root,omitempty"` |
| 196 | NoncesRoot *Hash `protobuf:"bytes,9,opt,name=nonces_root,json=noncesRoot" json:"nonces_root,omitempty"` |
| 197 | NextPredicate *Predicate `protobuf:"bytes,10,opt,name=next_predicate,json=nextPredicate" json:"next_predicate,omitempty"` |
| 198 | // Fields added by future versions of the protocol. |
| 199 | ExtraFields []*DataItem `protobuf:"bytes,11,rep,name=extra_fields,json=extraFields" json:"extra_fields,omitempty"` |
| 200 | } |
| 201 | |
| 202 | func (m *BlockHeader) Reset() { *m = BlockHeader{} } |
| 203 | func (m *BlockHeader) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected