From f614d33903f166de072f4c7ece35569b226f2203 Mon Sep 17 00:00:00 2001 From: Sergiy Lavrynenko Date: Tue, 19 Dec 2023 12:58:28 +0000 Subject: [PATCH 1/2] SNB hot fix --- npms/skale-observer/observer.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/npms/skale-observer/observer.mjs b/npms/skale-observer/observer.mjs index 44956c704..ad5d58079 100644 --- a/npms/skale-observer/observer.mjs +++ b/npms/skale-observer/observer.mjs @@ -675,6 +675,7 @@ export async function getAllSchainNames( arrSChainHashes, opts ) { for( let idxSChain = 0; idxSChain < cntSChains; ++ idxSChain ) { if( opts && opts.bStopNeeded ) break; + const strSChainHash = arrSChainHashes[idxSChain]; const strSChainName = rawResults.results[strRef3].callsReturnContext[idxResult].returnValues[0]; arrSChainNames.push( strSChainName ); From b0a1795dfda7bd6aaf0d57b4b17e2681135c5230 Mon Sep 17 00:00:00 2001 From: Sergiy Lavrynenko Date: Tue, 19 Dec 2023 23:16:45 +0000 Subject: [PATCH 2/2] SNB hot fix --- npms/skale-observer/observer.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npms/skale-observer/observer.mjs b/npms/skale-observer/observer.mjs index ad5d58079..35a901013 100644 --- a/npms/skale-observer/observer.mjs +++ b/npms/skale-observer/observer.mjs @@ -163,6 +163,7 @@ const gArrChainIdsSupportedByMulticall = [ ]; async function isMulticallAvailable( mn ) { + // return true; if( mn && mn.ethersProvider ) { const { chainId } = await mn.ethersProvider.getNetwork(); const bnChainId = owaspUtils.toBN( chainId ); @@ -196,6 +197,7 @@ export async function loadSChainParts( joSChain, opts ) { const multicall = new EMC.Multicall( { ethersProvider: opts.imaState.chainProperties.mn.ethersProvider, tryAggregate: true + //, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11" } ); const strRef0 = "Nodes-nodes"; const strRef1 = "Nodes-getNodeDomainName"; @@ -425,6 +427,7 @@ export async function loadSChainsWithEMC( opts ) { const multicall = new EMC.Multicall( { ethersProvider: opts.imaState.chainProperties.mn.ethersProvider, tryAggregate: true + //, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11" } ); const cntGroupMax = 30, cntLastExtraGroup = cntSChains % cntGroupMax; const bHaveExtraGroup = ( cntLastExtraGroup > 0 ) ? true : false; @@ -652,6 +655,7 @@ export async function getAllSchainNames( arrSChainHashes, opts ) { const multicall = new EMC.Multicall( { ethersProvider: opts.imaState.chainProperties.mn.ethersProvider, tryAggregate: true + //, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11" } ); const strRef3 = "SchainsInternal-getSchainName"; const contractCallContext = [ { @@ -1296,7 +1300,8 @@ export async function ensureHaveWorker( opts ) { opts.imaState.joSChainDiscovery.repeatIntervalMilliseconds, "periodicDiscoveryInterval": opts.imaState.joSChainDiscovery.periodicDiscoveryInterval - } + }, + "isEnabledMultiCall": opts.imaState.isEnabledMultiCall } }, "cc": {