(w io.Writer)
| 9 | |
| 10 | func (TxHeader) typ() string { return "txheader" } |
| 11 | func (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. |
| 21 | func NewTxHeader(version uint64, resultIDs []*Hash, data *Hash, minTimeMS, maxTimeMS uint64) *TxHeader { |
nothing calls this directly
no test coverage detected