Skip to content
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

Switch FirehoseStateNodes to trie.resolver #87

Merged
merged 8 commits into from
Aug 16, 2019
Merged

Switch FirehoseStateNodes to trie.resolver #87

merged 8 commits into from
Aug 16, 2019

Conversation

yperbasis
Copy link
Member

No description provided.


block := pm.blockchain.GetBlockByHash(blockHash)
block := pm.blockchain.GetBlockByHash(request.Block)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you only need block to get the block number, there is a more efficient way of doing it, in core/rawdb/accessor_chain.go, func ReadHeaderNumber, however, it requires DatabaseReader. Perhaps it makes sense to access these things not via pm.blockchain, but instead have something like pm.db. This is for future improvements

@yperbasis yperbasis merged commit ad248bc into master Aug 16, 2019
bgelb pushed a commit to bgelb/erigon that referenced this pull request Sep 11, 2023
revitteth referenced this pull request in 0xPolygonHermez/cdk-erigon Dec 12, 2023
revitteth referenced this pull request in 0xPolygonHermez/cdk-erigon Dec 14, 2023
cffls pushed a commit to cffls/erigon that referenced this pull request Jan 30, 2024
taratorio pushed a commit that referenced this pull request Jul 23, 2024
* save

* save
taratorio pushed a commit that referenced this pull request Jul 23, 2024
* more bucketzzz (#87)

* save

* save

* Fix duplicate bucket name, remove presigned URLs (#88)

Co-authored-by: Alex Sharp <[email protected]>

* toml lint (#89)

* save

* save

* save

* save

---------

Co-authored-by: Alex Sharov <[email protected]>
Co-authored-by: Alex Sharp <[email protected]>
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.

2 participants