-
Notifications
You must be signed in to change notification settings - Fork 148
proxy: download blocks parallely while walking the chain #3892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 6 commits
8ba7394
d112e12
5665b75
0fc9d5b
375f338
7efe41b
2b34479
978bf02
f1eecb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,7 @@ proc load(T: type VerifiedProxyConf, configJson: string): T {.raises: [ProxyErro | |
| of "Auto": StdoutLogKind.Auto | ||
| else: StdoutLogKind.None | ||
| maxBlockWalk = jsonNode.getOrDefault("maxBlockWalk").getInt(1000) | ||
| parallelBlockDownloads = jsonNode.getOrDefault("parallelBlockDownloads").getInt(10) | ||
|
||
| headerStoreLen = jsonNode.getOrDefault("headerStoreLen").getInt(256) | ||
| storageCacheLen = jsonNode.getOrDefault("storageCacheLen").getInt(256) | ||
| codeCacheLen = jsonNode.getOrDefault("codeCacheLen").getInt(64) | ||
|
|
@@ -78,6 +79,7 @@ proc load(T: type VerifiedProxyConf, configJson: string): T {.raises: [ProxyErro | |
| storageCacheLen: storageCacheLen, | ||
| codeCacheLen: codeCacheLen, | ||
| accountCacheLen: accountCacheLen, | ||
| parallelBlockDownloads: uint64(parallelBlockDownloads), | ||
chirag-parmar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
| proc run*( | ||
|
|
@@ -95,6 +97,7 @@ proc run*( | |
| accountCacheLen: config.accountCacheLen, | ||
| codeCacheLen: config.codeCacheLen, | ||
| storageCacheLen: config.storageCacheLen, | ||
| parallelBlockDownloads: config.parallelBlockDownloads, | ||
| ) | ||
| engine = RpcVerificationEngine.init(engineConf).valueOr: | ||
| raise newException(ProxyError, error.errMsg) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.