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

add contracts.bytecode_hash field #480

Open
allenday opened this issue Nov 29, 2022 · 0 comments
Open

add contracts.bytecode_hash field #480

allenday opened this issue Nov 29, 2022 · 0 comments

Comments

@allenday
Copy link
Member

Rationale for hashing the bytecode is that there are many addresses with identical code. We can find the unique set of contracts with less i/o if there's a hash field. This also allows for more efficient search for new contracts vs. all previous in combination with the date partition.

Can use FARM_FINGERPRINT for this:
https://cloud.google.com/bigquery/docs/reference/standard-sql/hash_functions#farm_fingerprint

Change needs to be here, etc:
https://github.com/blockchain-etl/ethereum-etl-airflow/blob/master/dags/resources/stages/raw/schemas/contracts.json#L9

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

No branches or pull requests

1 participant