@@ -27,7 +27,6 @@ import type {
2727} from '../../@types/C2D/C2D.js'
2828import {
2929 BASE_CHAIN_ID ,
30- BENCHMARK_MONITORING_ADDRESS ,
3130 getConfiguration ,
3231 USDC_TOKEN_ADDRESS_BASE
3332} from '../../utils/config.js'
@@ -64,7 +63,8 @@ import { Service } from '@oceanprotocol/ddo-js'
6463import { getOceanTokenAddressForChain } from '../../utils/address.js'
6564import { dockerRegistrysAuth , dockerRegistryAuth } from '../../@types/OceanNode.js'
6665import { EncryptMethod } from '../../@types/fileObject.js'
67- import { ZeroAddress } from 'ethers'
66+ import { getAddress , ZeroAddress } from 'ethers'
67+ import { AccessList } from '../../@types/AccessList.js'
6868
6969const C2D_CONTAINER_UID = 1000
7070const C2D_CONTAINER_GID = 1000
@@ -231,8 +231,8 @@ export class C2DEngineDocker extends C2DEngine {
231231 ...gpuResources
232232 ] ,
233233 access : {
234- addresses : [ BENCHMARK_MONITORING_ADDRESS ] ,
235- accessLists : null
234+ addresses : [ ] ,
235+ accessLists : [ { '8453' : [ '0xcb7Db55Ca9Aa9C3b25F5Bc266da63317fa02086a' ] } ]
236236 } ,
237237 fees : benchmarkFees
238238 }
@@ -400,8 +400,9 @@ export class C2DEngineDocker extends C2DEngine {
400400 for ( const env of this . envs ) {
401401 const cpuRes = this . getResource ( env . resources ?? [ ] , 'cpu' )
402402 if ( cpuRes && cpuRes . total > 0 ) {
403- const isBenchmarkEnv = env . access ?. addresses ?. includes (
404- BENCHMARK_MONITORING_ADDRESS
403+ const baseAccessList = env . access ?. accessLists ?. [ 0 ] as AccessList
404+ const isBenchmarkEnv = baseAccessList [ '8453' ] . includes (
405+ getAddress ( '0xcb7Db55Ca9Aa9C3b25F5Bc266da63317fa02086a' )
405406 )
406407 if ( isBenchmarkEnv ) {
407408 const total = physicalCpuCount > 0 ? physicalCpuCount : cpuRes . total
0 commit comments