Commit 87803d4
committed
test(zebra-consensus): assert the Orchard proof failure, not a UTXO timeout
`block_with_garbage_orchard_proofs_is_rejected` discarded the UTXO map
from `mock_transparent_transfer` and sent an empty `known_utxos` for a
transaction with a transparent input. The mock state never answers the
lookup, so the request failed on `UTXO_LOOKUP_TIMEOUT` six minutes later
and `assert!(resp.is_err())` was satisfied by that timeout: the test
never reached proof verification, and would have passed with Orchard
proof checking removed. It was also the slowest test in the CI profile,
at 360s of the run's 623s.
Pass the funding UTXO through and assert `Halo2VerificationFailed`, so
the rejection under test is the one the CVE-2026-34377 advisory is about.
The test now finishes in 0.7s.1 parent b685fbe commit 87803d4
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4598 | 4598 | | |
4599 | 4599 | | |
4600 | 4600 | | |
4601 | | - | |
| 4601 | + | |
4602 | 4602 | | |
4603 | 4603 | | |
4604 | 4604 | | |
| |||
4620 | 4620 | | |
4621 | 4621 | | |
4622 | 4622 | | |
4623 | | - | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
4624 | 4628 | | |
4625 | 4629 | | |
4626 | 4630 | | |
4627 | 4631 | | |
4628 | 4632 | | |
4629 | | - | |
| 4633 | + | |
4630 | 4634 | | |
4631 | 4635 | | |
4632 | 4636 | | |
4633 | 4637 | | |
4634 | 4638 | | |
4635 | | - | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
4636 | 4648 | | |
4637 | 4649 | | |
4638 | 4650 | | |
| |||
0 commit comments