Commit baa8ed4
fix(testing): stop dropping an explicit proposer index of 0 (#1157)
resolve_proposer_index used `self.proposer_index or <default>`, but ValidatorIndex
subclasses int with no __bool__, so ValidatorIndex(0) is falsy and a proposer pinned to
validator 0 was silently replaced by the round-robin default. Use an explicit None check.
Vectors that never pin proposer 0 are unchanged.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1ef93a9 commit baa8ed4
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments