diff --git a/api/src/initServices.ts b/api/src/initServices.ts index 6a9f02792..93f93bf15 100644 --- a/api/src/initServices.ts +++ b/api/src/initServices.ts @@ -211,14 +211,15 @@ function initNovaServices(networkConfig: INetwork): void { logger.verbose(`Initializing Nova services for ${networkConfig.network}`); const novaClientParams: INovaClientOptions = { - primaryNode: networkConfig.provider, + primaryNodes: [networkConfig.provider], }; if (networkConfig.permaNodeEndpoint) { - novaClientParams.nodes = [networkConfig.permaNodeEndpoint]; - // Client with permanode needs the ignoreNodeHealth as chronicle is considered "not healthy" by the sdk - // Related: https://github.com/iotaledger/inx-chronicle/issues/1302 - novaClientParams.ignoreNodeHealth = true; + const chronicleNode = { + url: networkConfig.permaNodeEndpoint, + permanode: true, + }; + novaClientParams.primaryNodes.push(chronicleNode); const chronicleService = new ChronicleService(networkConfig); ServiceFactory.register(`chronicle-${networkConfig.network}`, () => chronicleService); diff --git a/setup_nova.sh b/setup_nova.sh index 3a84bcb80..149b19584 100755 --- a/setup_nova.sh +++ b/setup_nova.sh @@ -1,6 +1,6 @@ #!/bin/bash SDK_DIR="iota-sdk" -TARGET_COMMIT="8f0ff5e1e899a0d960ddfea09237739a88c3bcf1" +TARGET_COMMIT="257bcff80bf0336f571f9a226ebde1acd8974104" if [ ! -d "$SDK_DIR" ]; then git clone -b 2.0 git@github.com:iotaledger/iota-sdk.git