-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
…ed in the resolver
|
||
block := pm.blockchain.GetBlockByHash(blockHash) | ||
block := pm.blockchain.GetBlockByHash(request.Block) |
There was a problem hiding this comment.
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
…pe-check Update erigon-lib version
Co-authored-by: Igor Mandrigin <[email protected]>
Co-authored-by: Igor Mandrigin <[email protected]>
* 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]>
No description provided.