(w io.Writer)
| 7 | |
| 8 | func (BlockHeader) typ() string { return "blockheader" } |
| 9 | func (bh *BlockHeader) writeForHash(w io.Writer) { |
| 10 | mustWriteForHash(w, bh.Version) |
| 11 | mustWriteForHash(w, bh.Height) |
| 12 | mustWriteForHash(w, bh.PreviousBlockId) |
| 13 | mustWriteForHash(w, bh.TimestampMs) |
| 14 | mustWriteForHash(w, bh.TransactionsRoot) |
| 15 | mustWriteForHash(w, bh.AssetsRoot) |
| 16 | mustWriteForHash(w, bh.NextConsensusProgram) |
| 17 | mustWriteForHash(w, bh.ExtHash) |
| 18 | } |
| 19 | |
| 20 | // NewBlockHeader creates a new BlockHeader and populates |
| 21 | // its body. |
nothing calls this directly
no test coverage detected