From 41dbee788a34db403d2d80639046d28be2554216 Mon Sep 17 00:00:00 2001 From: Alex Barnsley <8069294+alexbarnsley@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:28:26 +0000 Subject: [PATCH] refactor: remove validator registration scope for cache networks command (#992) --- app/Console/Commands/CacheNetworkAggregates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/CacheNetworkAggregates.php b/app/Console/Commands/CacheNetworkAggregates.php index 1fda48421..c2052775d 100644 --- a/app/Console/Commands/CacheNetworkAggregates.php +++ b/app/Console/Commands/CacheNetworkAggregates.php @@ -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; @@ -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()); }