-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: