Commit e82a104
refactor(fork-choice): enumerate payload key union without copying values (#1137)
Promoting pending aggregate proofs iterated a throwaway merged dict
built only to walk its keys, copying every set value just to discard it.
Enumerate the key union directly with an order-preserving construction.
The new enumeration yields keys in exactly the same order as the old
merged dict: all counted-pool keys in insertion order, then pending-pool
keys not already present, in their insertion order. This preserves the
LMD determinism invariant, where equal-slot ties resolve by first-seen
insertion order. A set union would not preserve that order.
just check passes.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 11dc4b6 commit e82a104
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| |||
0 commit comments