From 89f8335264de772befc77f4b4852d179ce9fe8da Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Mon, 2 Mar 2026 21:33:53 -0800 Subject: [PATCH] Reconfigure mixFetch options for network reliability - Set a preferred gateway - Use a 5 minute timeout --- CHANGELOG.md | 2 ++ src/util/nym.ts | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77a86e20..a2d0b047 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- changed: Reconfigure mixFetch options for network reliability. + ## 2.43.1 (2026-02-23) - changed: Upgrade `@nymproject/mix-fetch` to improve performance with new concurrency changes. diff --git a/src/util/nym.ts b/src/util/nym.ts index b1bee731..23faad2d 100644 --- a/src/util/nym.ts +++ b/src/util/nym.ts @@ -11,7 +11,13 @@ import { EdgeLog } from '../types/types' * Configuration options for the NYM mixFetch client. */ export const mixFetchOptions: SetupMixFetchOps = { - forceTls: true // force WSS + preferredGateway: '5rXcNe2a44vXisK3uqLHCzpzvEwcnsijDMU7hg4fcYk8', // with WSS + preferredNetworkRequester: + '5x6q9UfVHs5AohKMUqeivj7a556kVVy7QwoKige8xHxh.6CFoB3kJaDbYz6oafPJxNxNjzahpT2NtgtytcSyN9EvF@5rXcNe2a44vXisK3uqLHCzpzvEwcnsijDMU7hg4fcYk8', + forceTls: true, // force WSS + mixFetchOverride: { + requestTimeoutMs: 300000 + } } // MixFetch initialization state