envio 3.3.0-rc.0 → 3.3.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envio",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
|
|
6
6
|
"bin": "./bin.mjs",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"tsx": "4.21.0"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"envio-linux-x64": "3.3.0
|
|
74
|
-
"envio-linux-x64-musl": "3.3.0
|
|
75
|
-
"envio-linux-arm64": "3.3.0
|
|
76
|
-
"envio-darwin-x64": "3.3.0
|
|
77
|
-
"envio-darwin-arm64": "3.3.0
|
|
73
|
+
"envio-linux-x64": "3.3.0",
|
|
74
|
+
"envio-linux-x64-musl": "3.3.0",
|
|
75
|
+
"envio-linux-arm64": "3.3.0",
|
|
76
|
+
"envio-darwin-x64": "3.3.0",
|
|
77
|
+
"envio-darwin-arm64": "3.3.0"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/src/CrossChainState.res
CHANGED
|
@@ -307,11 +307,11 @@ let checkAndFetch = async (
|
|
|
307
307
|
(isCold ? Pervasives.min(remaining.contents, coldChainBudget) : remaining.contents) +.
|
|
308
308
|
cs->ChainState.pendingBudget
|
|
309
309
|
let maxTargetBlock = switch alignment {
|
|
310
|
-
//
|
|
310
|
+
// 10% margin past the anchor's line: chains whose progress tracks the
|
|
311
311
|
// anchor closely would otherwise flap in and out of the clamp on every
|
|
312
312
|
// small frontier move, stalling their pipeline every other tick.
|
|
313
313
|
| Some((anchorChainId, progress)) if anchorChainId !== chainId =>
|
|
314
|
-
Some(cs->ChainState.blockAtProgress(~progress=progress +. 0.
|
|
314
|
+
Some(cs->ChainState.blockAtProgress(~progress=progress +. 0.1))
|
|
315
315
|
| _ => None
|
|
316
316
|
}
|
|
317
317
|
switch cs->ChainState.getNextQuery(
|
|
@@ -172,7 +172,7 @@ async function checkAndFetch(crossChainState, dispatchChain) {
|
|
|
172
172
|
let chainTargetItems = (
|
|
173
173
|
isCold ? Primitive_float.min(remaining.contents, minimumAdmissionBudget) : remaining.contents
|
|
174
174
|
) + ChainState.pendingBudget(cs);
|
|
175
|
-
let maxTargetBlock = alignment !== undefined && alignment[0] !== chainId ? ChainState.blockAtProgress(cs, alignment[1] + 0.
|
|
175
|
+
let maxTargetBlock = alignment !== undefined && alignment[0] !== chainId ? ChainState.blockAtProgress(cs, alignment[1] + 0.1) : undefined;
|
|
176
176
|
let action = ChainState.getNextQuery(cs, chainTargetItems, chunkItemsMultiplier, itemsTargetFloor, maxTargetBlock);
|
|
177
177
|
if (typeof action !== "object") {
|
|
178
178
|
if (action === "WaitingForNewBlock") {
|