Skip to content

Commit

Permalink
refactor: remove validator registration scope for cache networks comm…
Browse files Browse the repository at this point in the history
…and (#992)
  • Loading branch information
alexbarnsley authored Nov 7, 2024
1 parent a70872d commit 41dbee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/CacheNetworkAggregates.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use App\Aggregates\TransactionVolumeAggregate;
use App\Aggregates\VoteCountAggregate;
use App\Aggregates\VotePercentageAggregate;
use App\Models\Scopes\ValidatorRegistrationScope;
use App\Models\Transaction;
use App\Services\Cache\NetworkCache;
use Illuminate\Console\Command;
Expand Down Expand Up @@ -40,7 +39,8 @@ public function handle(NetworkCache $cache): void

$cache->setVotesPercentage((new VotePercentageAggregate())->aggregate());

$cache->setValidatorRegistrationCount(Transaction::withScope(ValidatorRegistrationScope::class)->count());
// TODO: re-add validator registration scope - https://app.clickup.com/t/86duufu8e
$cache->setValidatorRegistrationCount(Transaction::count());

$cache->setFeesCollected((new DailyFeeAggregate())->aggregate());
}
Expand Down

0 comments on commit 41dbee7

Please sign in to comment.