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

Method writeForHash

protocol/bc/mux.go:10–14  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

8
9func (Mux) typ() string { return "mux1" }
10func (m *Mux) writeForHash(w io.Writer) {
11 mustWriteForHash(w, m.Sources)
12 mustWriteForHash(w, m.Program)
13 mustWriteForHash(w, m.ExtHash)
14}
15
16// NewMux creates a new Mux.
17func NewMux(sources []*ValueSource, program *Program) *Mux {

Callers

nothing calls this directly

Calls 1

mustWriteForHashFunction · 0.85

Tested by

no test coverage detected