Commit bf1837bc authored by Dan Notestein's avatar Dan Notestein
Browse files

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.
parent ccb01ea4
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment