Skip to content

Added fix to allow getroothash to work with no api running#8342

Merged
mh0lt merged 3 commits intodevelfrom
fix_bor_whitelist_api_deps
Oct 2, 2023
Merged

Added fix to allow getroothash to work with no api running#8342
mh0lt merged 3 commits intodevelfrom
fix_bor_whitelist_api_deps

Conversation

@mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Oct 2, 2023

Whitelisting calculation of the roothash should not be dependent on the bor api running. This will not always be the case, for example when erigon is configured with a separate rpc deamon.

To fix this the calculation has been moved to Bor.

Additionally the redundant Bor API code has been removed as this is not called by any code and the functionality looks to have migrated to the turbo/jsonrpc package.

@mh0lt mh0lt added the polygon label Oct 2, 2023
@mh0lt mh0lt merged commit 3d6d2a7 into devel Oct 2, 2023
@mh0lt mh0lt deleted the fix_bor_whitelist_api_deps branch October 2, 2023 17:55
yperbasis pushed a commit that referenced this pull request Oct 3, 2023
Whitelisting calculation of the roothash should not be dependent on the
bor api running. This will not always be the case, for example when
erigon is configured with a separate rpc deamon.

To fix this the calculation has been moved to Bor.

Additionally the redundant Bor API code has been removed as this is not
called by any code and the functionality looks to have migrated to the
turbo/jsonrpc package.
@yperbasis yperbasis mentioned this pull request Oct 3, 2023
yperbasis added a commit that referenced this pull request Oct 3, 2023
Cherry pick PRs #8329, #8339, #8342

---------

Co-authored-by: Mark Holt <135143369+mh0lt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant