Skip to content

Commit

Permalink
fix: update client to the latest iota-sdk changes (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad authored Feb 19, 2024
1 parent 61ff442 commit 59655f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions api/src/initServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion setup_nova.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]:iotaledger/iota-sdk.git
Expand Down

0 comments on commit 59655f3

Please sign in to comment.