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

Method writeForHash

protocol/bc/timerange.go:8–12  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

6
7func (TimeRange) typ() string { return "timerange1" }
8func (tr *TimeRange) writeForHash(w io.Writer) {
9 mustWriteForHash(w, tr.MinTimeMs)
10 mustWriteForHash(w, tr.MaxTimeMs)
11 mustWriteForHash(w, tr.ExtHash)
12}
13
14// NewTimeRange creates a new TimeRange.
15func NewTimeRange(minTimeMS, maxTimeMS uint64) *TimeRange {

Callers

nothing calls this directly

Calls 1

mustWriteForHashFunction · 0.85

Tested by

no test coverage detected