Commit ad91e7f
authored
serviceability: allow pending users to subscribe to multicast groups (#3521)
## Summary
- Allow `SubscribeMulticastGroup` for users in `Pending` status so that
`CreateSubscribeUser` (which only takes one mgroup account) can be
followed by additional subscribe calls before the activator runs
- The inner `subscribe_user_to_multicastgroup` function already handles
Pending users — `CreateSubscribeUser` proves this every time it runs.
The standalone instruction had an extra status gate creating an
inconsistency.
## Testing Verification
- `test_subscribe_pending_user_succeeds` — creates a Pending user via
`CreateSubscribeUser`, then subscribes via `SubscribeMulticastGroup` and
verifies the user remains Pending with both publisher and subscriber
lists populated
- All 15 `create_subscribe_user_test` tests pass
- All 13 `multicastgroup_subscribe_test` tests pass1 parent b61be7a commit ad91e7f
4 files changed
Lines changed: 45 additions & 26 deletions
File tree
- e2e
- smartcontract/programs/doublezero-serviceability
- src/processors/multicastgroup
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
Lines changed: 32 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 54 | + | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
2635 | 2630 | | |
2636 | 2631 | | |
2637 | 2632 | | |
2638 | | - | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
2639 | 2637 | | |
2640 | | - | |
| 2638 | + | |
2641 | 2639 | | |
2642 | 2640 | | |
2643 | 2641 | | |
| |||
2655 | 2653 | | |
2656 | 2654 | | |
2657 | 2655 | | |
2658 | | - | |
| 2656 | + | |
2659 | 2657 | | |
2660 | 2658 | | |
2661 | 2659 | | |
| |||
2681 | 2679 | | |
2682 | 2680 | | |
2683 | 2681 | | |
2684 | | - | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
2685 | 2693 | | |
2686 | | - | |
| 2694 | + | |
2687 | 2695 | | |
2688 | 2696 | | |
2689 | 2697 | | |
2690 | 2698 | | |
2691 | 2699 | | |
2692 | | - | |
| 2700 | + | |
2693 | 2701 | | |
2694 | 2702 | | |
2695 | 2703 | | |
| |||
2700 | 2708 | | |
2701 | 2709 | | |
2702 | 2710 | | |
2703 | | - | |
| 2711 | + | |
| 2712 | + | |
2704 | 2713 | | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
2710 | 2719 | | |
2711 | | - | |
2712 | | - | |
2713 | | - | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
2714 | 2723 | | |
| 2724 | + | |
| 2725 | + | |
2715 | 2726 | | |
0 commit comments