@xyo-network/xl1-protocol-sdk 1.26.36 → 1.26.38
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/dist/neutral/getFileConfig.mjs +1 -1
- package/dist/neutral/getFileConfig.mjs.map +1 -1
- package/dist/neutral/index.mjs +1 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/primitives/uncle/findBestUncle.d.ts +2 -2
- package/dist/neutral/test/index.mjs +1 -1
- package/dist/neutral/test/index.mjs.map +1 -1
- package/package.json +61 -66
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol-lib';
|
|
2
2
|
/** Default minimum number of uncle candidates before selecting. */
|
|
3
|
-
export declare const DEFAULT_MIN_CANDIDATES =
|
|
3
|
+
export declare const DEFAULT_MIN_CANDIDATES = 1;
|
|
4
4
|
/** Default back-off timeout in milliseconds. If the head has not changed for this long, minCandidates is ignored. */
|
|
5
5
|
export declare const DEFAULT_BACKOFF_MS = 120000;
|
|
6
6
|
/** Options for findBestUncle block selection. */
|
|
7
7
|
export interface FindBestUncleOptions {
|
|
8
8
|
/** Back-off timeout in ms. If head age exceeds this, minCandidates is ignored. Default: 120_000. */
|
|
9
9
|
backoffMs?: number;
|
|
10
|
-
/** Minimum number of uncle candidates before selecting. Default:
|
|
10
|
+
/** Minimum number of uncle candidates before selecting. Default: 1. */
|
|
11
11
|
minCandidates?: number;
|
|
12
12
|
/** Current timestamp in ms. Injectable for testing. Default: Date.now(). */
|
|
13
13
|
now?: number;
|
|
@@ -1223,7 +1223,7 @@ async function hydratedBlockByNumber(context, blockNumber) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
1225
|
// src/primitives/uncle/findBestUncle.ts
|
|
1226
|
-
var DEFAULT_MIN_CANDIDATES =
|
|
1226
|
+
var DEFAULT_MIN_CANDIDATES = 1;
|
|
1227
1227
|
var DEFAULT_BACKOFF_MS = 12e4;
|
|
1228
1228
|
|
|
1229
1229
|
// src/config/Validation.ts
|