Skip to content

Commit 1981427

Browse files
Merge pull request #560 from Adamant-im/dev/trello.com/c/Jf4GpUjS
[trello.com/c/Jf4GpUjS] adamant-wallets update
2 parents e39d6bb + 4ff6c5c commit 1981427

File tree

12 files changed

+26
-36
lines changed

12 files changed

+26
-36
lines changed

Adamant.xcodeproj/project.pbxproj

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,6 @@
28142814
629616F00016639A2AFC5FC7 /* [CP] Embed Pods Frameworks */,
28152815
E96D64E62295CD4700CA5587 /* Embed App Extensions */,
28162816
A5AC8E01262E0B030053A7E2 /* Embed Frameworks */,
2817-
418BBB14293752F800CAB719 /* Run Script - Load wallets */,
28182817
41079EBC28AE974300C32DAF /* Run Script - SwiftLint */,
28192818
);
28202819
buildRules = (
@@ -3182,26 +3181,6 @@
31823181
shellPath = /bin/sh;
31833182
shellScript = "\"${PODS_ROOT}/SwiftLint/swiftlint\"\n";
31843183
};
3185-
418BBB14293752F800CAB719 /* Run Script - Load wallets */ = {
3186-
isa = PBXShellScriptBuildPhase;
3187-
buildActionMask = 8;
3188-
files = (
3189-
);
3190-
inputFileListPaths = (
3191-
);
3192-
inputPaths = (
3193-
"$(SRCROOT)/CommonKit/Scripts/UpdateWalletsScript.sh",
3194-
"$(SRCROOT)/CommonKit/Scripts/CoinsScript.rb",
3195-
);
3196-
name = "Run Script - Load wallets";
3197-
outputFileListPaths = (
3198-
);
3199-
outputPaths = (
3200-
);
3201-
runOnlyForDeploymentPostprocessing = 1;
3202-
shellPath = /bin/sh;
3203-
shellScript = "$SCRIPT_INPUT_FILE_0 xcode\n$SCRIPT_INPUT_FILE_1 xcode\n\nrm -r $PWD/scripts\n";
3204-
};
32053184
47866E9AB7D201F2CED0064C /* [CP] Check Pods Manifest.lock */ = {
32063185
isa = PBXShellScriptBuildPhase;
32073186
buildActionMask = 2147483647;

Adamant/Helpers/NodeGroup+Constants.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension NodeGroup {
2626
case .dash:
2727
return DashWalletService.healthCheckParameters.onScreenUpdateInterval
2828
case .ipfs:
29-
return IPFSApiService.healthCheckParameters.onScreenUpdateInterval
29+
return 10 // TODO: Fix the adamant-wallets script and the repo itself
3030
case .infoService:
3131
return AdmWalletService.healthCheckParameters.onScreenServiceUpdateInterval
3232
}
@@ -72,7 +72,7 @@ extension NodeGroup {
7272
case .dash:
7373
return DashWalletService.healthCheckParameters.threshold
7474
case .ipfs:
75-
return IPFSApiService.healthCheckParameters.threshold
75+
return IPFSApiService.healthCheckParameters.nodeHeightEpsilon
7676
case .infoService:
7777
return InfoService.threshold
7878
}

Adamant/Modules/Wallets/Adamant/AdmWalletService+DynamicConstants.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,14 @@ Node.makeDefaultNode(url: URL(string: "https://dschubba.adm.im")!),
8787

8888
static var serviceNodes: [Node] {
8989
[
90-
Node.makeDefaultNode(url: URL(string: "https://info.adamant.im")!),
91-
Node.makeDefaultNode(url: URL(string: "https://info2.adm.im")!),
90+
Node.makeDefaultNode(
91+
url: URL(string: "https://info.adamant.im")!,
92+
altUrl: URL(string: "http://88.198.156.44:44099")!
93+
),
94+
Node.makeDefaultNode(
95+
url: URL(string: "https://info2.adm.im")!,
96+
altUrl: URL(string: "http://207.180.210.95:33088")!
97+
)
9298
]
9399
}
94100
}

Adamant/Modules/Wallets/Klayr/KLYWalletService+DynamicConstants.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,21 @@ extension KlyWalletService {
7575

7676
static var nodes: [Node] {
7777
[
78-
Node.makeDefaultNode(url: URL(string: "https://klynode1.adamant.im")!, altUrl: URL(string: "http://195.26.255.137:44099")),
79-
Node.makeDefaultNode(url: URL(string: "https://klynode2.adamant.im")!, altUrl: URL(string: "http://109.176.199.130:44099")),
78+
Node.makeDefaultNode(url: URL(string: "https://klynode2.adamant.im")!, altUrl: URL(string: "http://109.176.199.130:44099")),
79+
Node.makeDefaultNode(url: URL(string: "https://klynode3.adm.im")!, altUrl: URL(string: "http://37.27.205.78:44099")),
8080
]
8181
}
8282

8383
static var serviceNodes: [Node] {
8484
[
85-
Node.makeDefaultNode(url: URL(string: "https://klyservice1.adamant.im")!),
86-
Node.makeDefaultNode(url: URL(string: "https://klyservice2.adamant.im")!),
85+
Node.makeDefaultNode(
86+
url: URL(string: "https://klyservice2.adamant.im")!,
87+
altUrl: URL(string: "http://109.176.199.130:44098")!
88+
),
89+
Node.makeDefaultNode(
90+
url: URL(string: "https://klyservice3.adm.im")!,
91+
altUrl: URL(string: "http://37.27.205.78:44098")!
92+
),
8793
]
8894
}
8995
}

Adamant/Services/FilesNetworkManager/IPFS+Constants.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ extension IPFSApiService {
4343
]
4444
}
4545

46-
static let healthCheckParameters = CoinHealthCheckParameters(
47-
normalUpdateInterval: 210,
46+
static let healthCheckParameters = BlockchainHealthCheckParams(
47+
group: .ipfs,
48+
name: symbol,
49+
normalUpdateInterval: 300,
4850
crucialUpdateInterval: 30,
49-
onScreenUpdateInterval: 10,
50-
threshold: 3,
51-
normalServiceUpdateInterval: 210,
52-
crucialServiceUpdateInterval: 30,
53-
onScreenServiceUpdateInterval: 10
51+
minNodeVersion: nil,
52+
nodeHeightEpsilon: .zero
5453
)
5554
}
Loading

0 commit comments

Comments
 (0)