@@ -304,7 +304,7 @@ export class BundleDataClient {
304
304
}
305
305
306
306
const bundle = this . clients . hubPoolClient . getLatestFullyExecutedRootBundle (
307
- this . clients . hubPoolClient . latestBlockSearched
307
+ this . clients . hubPoolClient . latestHeightSearched
308
308
) ;
309
309
if ( bundle !== undefined ) {
310
310
refunds . push ( await this . getPendingRefundsFromBundle ( bundle ) ) ;
@@ -317,7 +317,7 @@ export class BundleDataClient {
317
317
async getPendingRefundsFromBundle ( bundle : ProposedRootBundle ) : Promise < CombinedRefunds > {
318
318
const nextBundleMainnetStartBlock = this . clients . hubPoolClient . getNextBundleStartBlockNumber (
319
319
this . chainIdListForBundleEvaluationBlockNumbers ,
320
- this . clients . hubPoolClient . latestBlockSearched ,
320
+ this . clients . hubPoolClient . latestHeightSearched ,
321
321
this . clients . hubPoolClient . chainId
322
322
) ;
323
323
const chainIds = this . clients . configStoreClient . getChainIdIndicesForBlock ( nextBundleMainnetStartBlock ) ;
@@ -447,7 +447,7 @@ export class BundleDataClient {
447
447
const hubPoolClient = this . clients . hubPoolClient ;
448
448
const nextBundleMainnetStartBlock = hubPoolClient . getNextBundleStartBlockNumber (
449
449
this . chainIdListForBundleEvaluationBlockNumbers ,
450
- hubPoolClient . latestBlockSearched ,
450
+ hubPoolClient . latestHeightSearched ,
451
451
hubPoolClient . chainId
452
452
) ;
453
453
const chainIds = this . clients . configStoreClient . getChainIdIndicesForBlock ( nextBundleMainnetStartBlock ) ;
@@ -460,8 +460,8 @@ export class BundleDataClient {
460
460
this . spokePoolClients ,
461
461
getEndBlockBuffers ( chainIds , this . blockRangeEndBlockBuffer ) ,
462
462
this . clients ,
463
- this . clients . hubPoolClient . latestBlockSearched ,
464
- this . clients . configStoreClient . getEnabledChains ( this . clients . hubPoolClient . latestBlockSearched )
463
+ this . clients . hubPoolClient . latestHeightSearched ,
464
+ this . clients . configStoreClient . getEnabledChains ( this . clients . hubPoolClient . latestHeightSearched )
465
465
) ;
466
466
// Return block ranges for blocks after _pendingBlockRanges and up to widestBlockRanges.
467
467
// If a chain is disabled or doesn't have a spoke pool client, return a range of 0
@@ -728,7 +728,7 @@ export class BundleDataClient {
728
728
// hasn't queried. This is because this function will usually be called
729
729
// in production with block ranges that were validated by
730
730
// DataworkerUtils.blockRangesAreInvalidForSpokeClients.
731
- Math . min ( queryBlock , spokePoolClients [ deposit . destinationChainId ] . latestBlockSearched )
731
+ Math . min ( queryBlock , spokePoolClients [ deposit . destinationChainId ] . latestHeightSearched )
732
732
) ;
733
733
} ;
734
734
@@ -1542,7 +1542,7 @@ export class BundleDataClient {
1542
1542
spokePoolClient . spokePool ,
1543
1543
deposit ,
1544
1544
spokePoolClient . deploymentBlock ,
1545
- spokePoolClient . latestBlockSearched
1545
+ spokePoolClient . latestHeightSearched
1546
1546
) ;
1547
1547
}
1548
1548
@@ -1570,13 +1570,13 @@ export class BundleDataClient {
1570
1570
// contain blocks where the spoke pool client hasn't queried. This is because this function
1571
1571
// will usually be called in production with block ranges that were validated by
1572
1572
// DataworkerUtils.blockRangesAreInvalidForSpokeClients.
1573
- const startBlockForChain = Math . min ( _startBlockForChain , spokePoolClient . latestBlockSearched ) ;
1573
+ const startBlockForChain = Math . min ( _startBlockForChain , spokePoolClient . latestHeightSearched ) ;
1574
1574
// @dev Add 1 to the bundle end block. The thinking here is that there can be a gap between
1575
1575
// block timestamps in subsequent blocks. The bundle data client assumes that fill deadlines expire
1576
1576
// in exactly one bundle, therefore we must make sure that the bundle block timestamp for one bundle's
1577
1577
// end block is exactly equal to the bundle block timestamp for the next bundle's start block. This way
1578
1578
// there are no gaps in block timestamps between bundles.
1579
- const endBlockForChain = Math . min ( _endBlockForChain + 1 , spokePoolClient . latestBlockSearched ) ;
1579
+ const endBlockForChain = Math . min ( _endBlockForChain + 1 , spokePoolClient . latestHeightSearched ) ;
1580
1580
const [ startTime , _endTime ] = [
1581
1581
await spokePoolClient . getTimestampForBlock ( startBlockForChain ) ,
1582
1582
await spokePoolClient . getTimestampForBlock ( endBlockForChain ) ,
0 commit comments