File tree Expand file tree Collapse file tree
src/components/core/compute Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,27 +76,37 @@ export async function validateAlgoForDataset(
7676 const datasetService = services . find (
7777 ( service : any ) => service . id === datasetServiceId
7878 )
79+ CORE_LOGGER . logMessage ( `dataService: ${ datasetService } ` )
7980 if ( ! datasetService ) {
8081 throw new Error ( 'Dataset service not found' )
8182 }
8283 const { compute } = datasetService
84+ CORE_LOGGER . logMessage ( `compute: ${ JSON . stringify ( compute ) } ` )
8385 if ( datasetService . type !== 'compute' || ! compute ) {
8486 throw new Error ( 'Service not compute' )
8587 }
8688
8789 if ( algoDID ) {
90+ CORE_LOGGER . logMessage ( `algoDID: ${ algoDID } ` )
8891 if (
8992 // if not set allow them all
9093 ! compute . publisherTrustedAlgorithms &&
9194 ! compute . publisherTrustedAlgorithmPublishers
9295 ) {
96+ CORE_LOGGER . logMessage (
97+ `compute.publisherTrustedAlgorithms: ${ compute . publisherTrustedAlgorithms } `
98+ )
99+ CORE_LOGGER . logMessage (
100+ `compute.publisherTrustedAlgorithmPublishers: ${ compute . publisherTrustedAlgorithmPublishers } `
101+ )
93102 return true
94103 }
95104 // if is set only allow if match
96105 if ( compute . publisherTrustedAlgorithms ) {
97106 const trustedAlgo = compute . publisherTrustedAlgorithms . find (
98107 ( algo : any ) => algo . did === algoDID
99108 )
109+ CORE_LOGGER . logMessage ( `trustedAlgo: ${ trustedAlgo } ` )
100110 if ( trustedAlgo ) {
101111 return (
102112 trustedAlgo . filesChecksum === algoChecksums . files &&
You can’t perform that action at this time.
0 commit comments