We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09e181 commit f30b218Copy full SHA for f30b218
framework/libra-framework/sources/ol_sources/vouch_lib/vouch.move
@@ -375,11 +375,12 @@ module ol_framework::vouch {
375
376
// lazy update counter
377
if (current_epoch > lifetime.last_revocation_epoch) {
378
+ // If this is a new epoch vs the last revoke, reset the per-epoch count
379
lifetime.last_revocation_epoch = current_epoch;
- lifetime.revocations_this_epoch = lifetime.revocations_this_epoch + 1;
380
-
+ lifetime.revocations_this_epoch = 1;
381
} else {
382
- lifetime.revocations_this_epoch =1;
+ // Otherwise, increment the revoke count for the current epoch
383
+ lifetime.revocations_this_epoch = lifetime.revocations_this_epoch + 1;
384
}
385
386
0 commit comments