Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ private long computeReward(long beginCycle, long endCycle, AccountCapsule accoun
beginCycle = oldEndCycle;
}
if (beginCycle < endCycle) {
for (Pair<byte[], Long> vote : srAddresses) {

for (Pair<byte[], Long> vote : srAddresses) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@operagxsasha

The PR title mentions adding a "safety guard for negative cycle index", but the diff only shows formatting changes.

Could you double-check if the intended logic changes are missing from this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I'll double-check the intended logic change and update the PR if something is missing.


byte[] srAddress = vote.getKey();
BigInteger beginVi = delegationStore.getWitnessVi(beginCycle - 1, srAddress);
BigInteger endVi = delegationStore.getWitnessVi(endCycle - 1, srAddress);
Expand Down
Loading