@paimaexample/npm-midnight-indexer 0.3.126 → 0.3.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binary.js +6 -4
- package/indexer-standalone/config.yaml +16 -20
- package/package.json +1 -1
package/binary.js
CHANGED
|
@@ -4,7 +4,7 @@ const axios = require("axios");
|
|
|
4
4
|
const extract = require("extract-zip");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
|
|
7
|
-
const CURRENT_BINARY_VERSION = "
|
|
7
|
+
const CURRENT_BINARY_VERSION = "v3.0.0-alpha.21";
|
|
8
8
|
const FINAL_BINARY_NAME = "indexer-standalone";
|
|
9
9
|
|
|
10
10
|
/*
|
|
@@ -85,16 +85,18 @@ async function unzipBinary() {
|
|
|
85
85
|
const platform = getPlatform();
|
|
86
86
|
const extractedBinaryPath = path.join(
|
|
87
87
|
dir,
|
|
88
|
-
`indexer-standalone
|
|
88
|
+
`indexer-standalone`,
|
|
89
89
|
);
|
|
90
90
|
const finalBinaryPath = path.join(dir, FINAL_BINARY_NAME);
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// Rename the extracted file to indexer-standalone
|
|
93
|
+
if (fs.existsSync(extractedBinaryPath)) {
|
|
94
94
|
if (fs.existsSync(finalBinaryPath)) {
|
|
95
95
|
fs.unlinkSync(finalBinaryPath);
|
|
96
96
|
}
|
|
97
97
|
fs.renameSync(extractedBinaryPath, finalBinaryPath);
|
|
98
|
+
} else {
|
|
99
|
+
throw new Error(`Extracted binary not found at: ${extractedBinaryPath}`);
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
if (!fs.existsSync(finalBinaryPath)) {
|
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
run_migrations: true
|
|
2
|
-
network_id: &network_id "Undeployed"
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
network_id:
|
|
6
|
-
blocks_buffer:
|
|
7
|
-
|
|
8
|
-
caught_up_max_distance:
|
|
9
|
-
caught_up_leeway:
|
|
10
|
-
|
|
11
|
-
wallet_indexer_application:
|
|
12
|
-
network_id: *network_id
|
|
13
|
-
active_wallets_repeat_delay: "100ms"
|
|
3
|
+
application:
|
|
4
|
+
network_id: "undeployed"
|
|
5
|
+
blocks_buffer: 10
|
|
6
|
+
save_ledger_state_after: 1000
|
|
7
|
+
caught_up_max_distance: 10
|
|
8
|
+
caught_up_leeway: 5
|
|
9
|
+
active_wallets_query_delay: "500ms"
|
|
14
10
|
active_wallets_ttl: "30m"
|
|
15
|
-
transaction_batch_size:
|
|
16
|
-
#
|
|
17
|
-
#
|
|
11
|
+
transaction_batch_size: 50
|
|
12
|
+
# 1 by default
|
|
13
|
+
# concurrency_limit:
|
|
18
14
|
|
|
19
15
|
infra:
|
|
16
|
+
storage:
|
|
17
|
+
cnn_url: "./data/indexer.sqlite"
|
|
18
|
+
|
|
20
19
|
node:
|
|
21
20
|
url: "ws://localhost:9944"
|
|
22
21
|
reconnect_max_delay: "10s" # 10ms, 100ms, 1s, 10s
|
|
23
22
|
reconnect_max_attempts: 30 # Roughly 5m
|
|
24
|
-
|
|
25
|
-
storage:
|
|
26
|
-
cnn_url: "./data/indexer.sqlite"
|
|
23
|
+
subscription_recovery_timeout: "30s" # Re-subscribe if no block received within this time
|
|
27
24
|
|
|
28
25
|
api:
|
|
29
|
-
address: "
|
|
26
|
+
address: "0.0.0.0"
|
|
30
27
|
port: 8088
|
|
31
28
|
request_body_limit: "1MiB"
|
|
32
29
|
max_complexity: 200
|
|
33
30
|
max_depth: 15
|
|
34
|
-
network_id: *network_id
|
|
35
31
|
|
|
36
32
|
telemetry:
|
|
37
33
|
tracing:
|
|
@@ -41,4 +37,4 @@ telemetry:
|
|
|
41
37
|
metrics:
|
|
42
38
|
enabled: false
|
|
43
39
|
address: "0.0.0.0"
|
|
44
|
-
port: 9000
|
|
40
|
+
port: 9000
|