Skip to content

Commit

Permalink
🐛 Update default finality depth from 128 to 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Aug 20, 2024
1 parent d396d99 commit 718a691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-forks-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@konfeature/erpc-config-generator": patch
---

Update default network value `finalityDepth` from 128 to 1024
4 changes: 2 additions & 2 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type PartialNetworkConfig = Partial<Omit<NetworkConfig, "evm">> & {
*
* @default The default rate limit budget is empty
* @default The default block tracker interval is empty
* @default The default finality depth is 128
* @default The default finality depth is 1024 (same as default erpc here: https://github.com/erpc/erpc/blob/8515ca28d6281d3ed488129ca274d1a4ec0c06c7/erpc/networks.go#L314)
*/
export function buildEvmNetworks<
TChains extends readonly [Chain, ...Chain[]] = readonly [Chain, ...Chain[]],
Expand Down Expand Up @@ -57,7 +57,7 @@ export function buildEvmNetworks<
rateLimitBudget: rateLimitBudget,
evm: {
chainId: chain.id,
finalityDepth: options.evm?.finalityDepth ?? 128,
finalityDepth: options.evm?.finalityDepth ?? 1024,
blockTrackerInterval: options?.evm?.blockTrackerInterval ?? "",
},
};
Expand Down

0 comments on commit 718a691

Please sign in to comment.