@@ -13,7 +13,6 @@ import {
1313 AllocationManagementMode ,
1414 allocationRewardsPool ,
1515 AllocationStatus ,
16- BlockPointer ,
1716 indexerError ,
1817 IndexerErrorCode ,
1918 IndexingDecisionBasis ,
@@ -173,22 +172,6 @@ class Agent {
173172 } ,
174173 )
175174
176- const currentEpochStartBlock = currentEpochNumber . tryMap (
177- async ( ) => {
178- const currentEpoch = await this . networkMonitor . networkCurrentEpoch ( )
179- return {
180- number : currentEpoch . startBlockNumber ,
181- hash : currentEpoch . startBlockHash ,
182- } as BlockPointer
183- } ,
184- {
185- onError : error =>
186- this . logger . warn ( `Failed to fetch start block of current epoch` , {
187- error,
188- } ) ,
189- } ,
190- )
191-
192175 const networkLatestEpoch = timer ( 600_000 ) . tryMap (
193176 async ( ) => await this . networkMonitor . networkCurrentEpoch ( ) ,
194177 {
@@ -408,7 +391,6 @@ class Agent {
408391 paused : this . network . transactionManager . paused ,
409392 isOperator : this . network . transactionManager . isOperator ,
410393 currentEpochNumber,
411- currentEpochStartBlock,
412394 maxAllocationEpochs,
413395 activeDeployments,
414396 targetDeployments,
@@ -423,7 +405,6 @@ class Agent {
423405 paused,
424406 isOperator,
425407 currentEpochNumber,
426- currentEpochStartBlock,
427408 maxAllocationEpochs,
428409 activeDeployments,
429410 targetDeployments,
@@ -500,7 +481,6 @@ class Agent {
500481 networkDeploymentAllocationDecisions ,
501482 activeAllocations ,
502483 currentEpochNumber ,
503- currentEpochStartBlock ,
504484 maxAllocationEpochs ,
505485 )
506486 } catch ( err ) {
@@ -850,7 +830,6 @@ class Agent {
850830 networkDeploymentAllocationDecisions : AllocationDecision [ ] ,
851831 activeAllocations : Allocation [ ] ,
852832 epoch : number ,
853- epochStartBlock : BlockPointer ,
854833 maxAllocationEpochs : number ,
855834 ) : Promise < void > {
856835 if (
@@ -887,7 +866,6 @@ class Agent {
887866
888867 this . logger . trace ( `Reconcile allocation actions` , {
889868 epoch,
890- epochStartBlock,
891869 maxAllocationEpochs,
892870 targetDeployments : networkDeploymentAllocationDecisions
893871 . filter ( decision => decision . toAllocate )
0 commit comments