Skip to content

Commit

Permalink
Update calculationUserIncentives
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Jun 19, 2024
1 parent e5975a7 commit 8762ba0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,12 @@ public InspireResultDto calculationUserIncentives(UserInspireCalculationDto dto)
|| (newCurrentStake.equals(theLastConsensusNodeStake) && publicKey.compareTo(theLastConsensusNodePublicKey) == 1)) {

one.setStatus(2);
for (NodeInfoOnChain consensus : nodeInfoOnChains) {
if (consensus.getPublicKey().equals(theLastConsensusNodePublicKey)) {
consensus.setStatus(1);
break;
if (!publicKey.equals(theLastConsensusNodePublicKey)) {
for (NodeInfoOnChain consensus : nodeInfoOnChains) {
if (consensus.getPublicKey().equals(theLastConsensusNodePublicKey)) {
consensus.setStatus(1);
break;
}
}
}
}
Expand Down

0 comments on commit 8762ba0

Please sign in to comment.