CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

CheckReward(...): When admin is also client, the ClientPaidUpTo is incremented twice #152

Closed gundas closed 7 years ago

gundas commented 7 years ago

In CheckReward(...) when admin is also client, the ClientPaidUpTo is incremented twice within the main loop: https://github.com/CORIONplatform/solidity/blob/provider-recode/provider.sol#L1159-L1162 and https://github.com/CORIONplatform/solidity/blob/provider-recode/provider.sol#L1233-L1236

gundas commented 7 years ago

My bad - it is not incremented twice, it is just set twice to the same value.

iFA88 commented 7 years ago

If you debugging, the DEBUG event is very useful :)