(t *testing.T)
| 363 | } |
| 364 | |
| 365 | func TestNoncelessIssuance(t *testing.T) { |
| 366 | tx := bctest.NewIssuanceTx(t, bc.EmptyStringHash, func(tx *legacy.Tx) { |
| 367 | // Remove the issuance nonce. |
| 368 | tx.Inputs[0].TypedInput.(*legacy.IssuanceInput).Nonce = nil |
| 369 | }) |
| 370 | |
| 371 | err := ValidateTx(legacy.MapTx(&tx.TxData), bc.EmptyStringHash) |
| 372 | if errors.Root(err) != bc.ErrMissingEntry { |
| 373 | t.Fatalf("got %s, want %s", err, bc.ErrMissingEntry) |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | func TestBlockHeaderValid(t *testing.T) { |
| 378 | base := bc.NewBlockHeader(1, 1, &bc.Hash{}, 1, &bc.Hash{}, &bc.Hash{}, nil) |
nothing calls this directly
no test coverage detected