(tb testing.TB)
| 289 | } |
| 290 | |
| 291 | func newInitialBlock(tb testing.TB) *bc.UnsignedBlock { |
| 292 | root := bc.TxMerkleRoot(nil) // calculate the zero value of the tx merkle root |
| 293 | |
| 294 | return &bc.UnsignedBlock{ |
| 295 | BlockHeader: &bc.BlockHeader{ |
| 296 | Version: 3, |
| 297 | Height: 1, |
| 298 | TimestampMs: bc.Millis(time.Now()), |
| 299 | TransactionsRoot: &root, |
| 300 | NextPredicate: &bc.Predicate{Version: 1, Quorum: 0}, |
| 301 | }, |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | func generate(tb testing.TB, prev *bc.UnsignedBlock) *bc.UnsignedBlock { |
| 306 | prevID := prev.Hash() |
no test coverage detected