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

Support eth-cache lmdb ingestion #14

Open
kamikazechaser opened this issue Jul 10, 2024 · 0 comments
Open

Support eth-cache lmdb ingestion #14

kamikazechaser opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request low-priority
Milestone

Comments

@kamikazechaser
Copy link
Contributor

Storage paths

Content prefixes

file cache path lmdb cache key content
block/src/<block_hash_hex_leveldir> block/src/<block_hash_bytes> block json source
block/num/<block_number_int_leveldir> block/num/<block_number_int_bytes_be> block hash (32 bytes)
block/hash/<block_hash_hex_leveldir> block/hash/<block_hash_bytes> block number (8 bytes)
tx/src/<tx_hash> tx/src/<tx_hash_bytes> tx json source
tx/raw/<tx_hash> tx/raw/<tx_hash_bytes> tx rlp (bytes)
rcpt/src/<tx_hash> rcpt/src/<tx_hash_bytes> tx receipt json source
address/<address_hex_leveldir>/<tx_hash_hex> address/<address_bytes>/<tx_hash> none

The address index has no content, and it has one key/file per transaction hash associated with the address.

Leveldir

hex

Two first bytes became two nested directory named after the byte value.

value path
2B10B3DF...BCEF9D9B 2B/10/2B10B3DF...BCEF9D9B

number

Two nested directories segment numbers in 100000 and 100 strides respectively.

number path
12345678 12300000/12345000/12345678
98654 0/98000/98654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority
Projects
Development

No branches or pull requests

1 participant