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

Method writeForHash

protocol/bc/txheader.go:11–18  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

9
10func (TxHeader) typ() string { return "txheader" }
11func (h *TxHeader) writeForHash(w io.Writer) {
12 mustWriteForHash(w, h.Version)
13 mustWriteForHash(w, h.ResultIds)
14 mustWriteForHash(w, h.Data)
15 mustWriteForHash(w, h.MinTimeMs)
16 mustWriteForHash(w, h.MaxTimeMs)
17 mustWriteForHash(w, h.ExtHash)
18}
19
20// NewTxHeader creates an new TxHeader.
21func NewTxHeader(version uint64, resultIDs []*Hash, data *Hash, minTimeMS, maxTimeMS uint64) *TxHeader {

Callers

nothing calls this directly

Calls 1

mustWriteForHashFunction · 0.85

Tested by

no test coverage detected