Commit c0535c3
committed
coinage-layer Phase 7 (part 14): op_count_in_flight diagnostic
Adds an aggregator over non-terminal operations:
op_count_in_flight() -> usize
Counts operations with status in {Preparing, Submitted, InBlock,
Finalized, Waiting(_)}. Useful for "how many ops are pending" UI
and for tests asserting no in-flight ops remain after a cancellation
sweep.
(An earlier attempt at op_count_by_kind hit Verus's restriction on
deriving PartialEq for enums with payloads. Future work: add an
assume_specification for OpKind equality, or refactor to use match
arms.)
206 verified, 0 errors.1 parent 9fbb6ba commit c0535c3
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4689 | 4689 | | |
4690 | 4690 | | |
4691 | 4691 | | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
4692 | 4722 | | |
4693 | 4723 | | |
4694 | 4724 | | |
| |||
0 commit comments