Use cursor for deterministic reputation calculation order
The CTE-based approach with ORDER BY does not guarantee execution order, which can lead to non-deterministic reputation scores when multiple votes affect the same author in the same block range. This change uses a FOR loop with explicit cursor iteration to guarantee that reputation changes are processed in source_op order, ensuring deterministic and reproducible results.
Loading
Please sign in to comment