Skip to content

Commit

Permalink
Fix incorrect field returned in ResolveMoneySupplyForPoll()
Browse files Browse the repository at this point in the history
The function returned the block timestamp instead of the money supply
for expired polls.
  • Loading branch information
cyrossignol committed Dec 21, 2020
1 parent f2e0823 commit 6a25fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gridcoin/voting/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ CAmount ResolveMoneySupplyForPoll(const Poll& poll)

for (; pindex && pindex->nTime > poll_expiration; pindex = pindex->pprev);

return pindex->nTime;
return pindex->nMoneySupply;
}
} // Anonymous namespace

Expand Down

0 comments on commit 6a25fb4

Please sign in to comment.