Commit Graph

1215 Commits

Author SHA1 Message Date
Thomas Coratger
a6c8bda029 primitives: use alloy MAINNET_GENESIS_HASH constant (#11848) 2024-10-17 19:44:04 +00:00
Thomas Coratger
3bc3e71699 primitives: use EMPTY_OMMER_ROOT_HASH const when possible (#11833) 2024-10-17 11:21:40 +00:00
Matthias Seitz
e828b34ed1 chore: rm features from test utils (#11816) 2024-10-17 03:06:23 +00:00
Matthias Seitz
b57a5607cb test: make provider compile with cargo t (#11817) 2024-10-17 03:05:26 +00:00
Matthias Seitz
5a82f20a29 chore: rm 1 usage of optimism feature (#11813) 2024-10-16 22:03:33 +00:00
Thomas Coratger
82862fabd7 primitives: rm redundant functions for Transaction (#11747) 2024-10-16 20:33:57 +00:00
Thomas Coratger
d421931b7e trie: simplify usage of HashedStorage with default (#11662) 2024-10-16 10:31:23 +00:00
joshieDo
a6358d2e6f feat(provider): add *StateProviderRef creation methods to DatabaseProvider (#11776) 2024-10-16 08:52:56 +00:00
joshieDo
183cea4577 chore(provider): move state_provider_from_state to BlockState impl (#11777) 2024-10-16 08:13:30 +00:00
DaniPopes
3cb4bf266d chore(deps): bump alloy-trie 0.7 (#11362)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
2024-10-15 10:53:34 +00:00
Deil Urba
3ab1f9559e feat: replace once_cell with std (#11694)
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
2024-10-15 08:21:01 +00:00
Delweng
f684dd4c4c chore(clippy): enable if_then_some_else_none lint (#11679)
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-10-14 15:45:26 +00:00
Federico Gimenez
c03399d1eb chore(ci): unpin clippy (#11697) 2024-10-13 09:25:56 +00:00
Thomas Coratger
b51299b86b refac: small refactor in BlockchainProvider2 (#11660) 2024-10-11 18:22:20 +00:00
Thomas Coratger
bca11aa2dd clippy: add from_iter_instead_of_collect warn (#11666) 2024-10-11 17:56:33 +00:00
Matthias Seitz
1ba631ba95 feat: store safe block num as well (#11648) 2024-10-10 19:32:15 +02:00
Matthias Seitz
fca1cd8181 fix: don't unwrap missing requests (#11646) 2024-10-10 16:54:06 +00:00
joshieDo
10eb1e8b3f chore(providers): test race condition on all BlockchainProvider2 macro tests (#11574) 2024-10-08 17:10:23 +00:00
joshieDo
67db43d0ac chore(provider): add more test coverage on BlockchainProvider non-range queries (#11564) 2024-10-08 13:17:57 +00:00
joshieDo
65e6683295 fix(provider): fix sub overflow on tx_range queries for empty blocks (#11568) 2024-10-08 12:54:47 +00:00
Roman Krasiuk
548f5b9c6d feat(trie): expose storage proofs (#11550) 2024-10-08 09:47:15 +00:00
Dan Cline
4b12f3285a fix(tree): make state methods work for historical blocks (#11265)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
2024-10-07 09:12:35 +00:00
joshieDo
7842673903 feat(provider): add test_race to BlockchainProvider2 tests (#11523) 2024-10-07 09:06:28 +00:00
Emilia Hane
36de90fdc3 chore(lint): fix clippy::needles_lifetimes (#11496) 2024-10-05 11:08:08 +00:00
joshieDo
093b1a16df chore(provider): add more test coverage on BlockchainProvider::*by_block_range queries (#11488) 2024-10-04 18:57:44 +00:00
Emilia Hane
16bc9c8b49 chore(lint): fix lint storage (#11485) 2024-10-04 17:19:02 +00:00
joshieDo
a42cfbbae7 chore(provider): add more test coverage on BlockchainProvider::*by_tx_range queries (#11480) 2024-10-04 15:05:17 +00:00
Alexey Shekhirin
b537672886 chore(db): capture tx opening backtrace in debug mode (#11477) 2024-10-04 12:10:32 +00:00
joshieDo
b4d5adeeb1 chore: use block_ref on CanonicalInMemoryState (#11467) 2024-10-03 17:32:31 +00:00
joshieDo
af465623cb chore(provider): clone after filtering on sealed_headers_while (#11459)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-10-03 17:38:00 +02:00
joshieDo
96f1406a14 chore(provider): use block_ref instead on BlockState (#11458) 2024-10-03 13:48:37 +00:00
joshieDo
ac85fc0507 chore(provider): find last_database_block_number with BlockState anchor instead (#11455) 2024-10-03 13:19:02 +00:00
joshieDo
8cd052c4d9 chore(provider): use get_in_memory_or_storage_by_block on fn block_body_indices (#11452) 2024-10-03 13:17:17 +00:00
joshieDo
05a7bdc9ac chore(provider): use get_in_memory_or_storage on transactions_by_block_range (#11453) 2024-10-03 13:08:38 +00:00
joshieDo
73d5ce78c3 chore: replace Compact with bincode on ETL usage of SealedHeader (#11442) 2024-10-03 11:48:24 +00:00
Matthias Seitz
70d498d296 chore: make clippy happy (#11439) 2024-10-02 19:19:13 +00:00
joshieDo
5ec448ef94 feat: add get_in_memory_or_storage_by_tx_range (#11414)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-10-02 17:45:06 +00:00
joshieDo
2ca8231e73 chore(provider): dont recover sender from BlockState transaction on transaction_sender (#11424) 2024-10-02 13:55:07 +00:00
Federico Gimenez
e2f35ce6df chore: remove temporary allow attribute (#11428) 2024-10-02 13:05:02 +00:00
joshieDo
da23e1ce8d chore(provider): rename to get_in_memory_or_storage_by_block_range_while (#11421) 2024-10-02 12:23:02 +00:00
joshieDo
7c15326e0b feat: add get_in_memory_or_storage_by_block to BlockchainProvider2 (#11384) 2024-10-02 09:05:48 +00:00
Matthias Seitz
7cec526370 chore: make clippy happy (#11408) 2024-10-02 10:09:44 +02:00
Matthias Seitz
12554c426f fix: fetch header by hash (#11407) 2024-10-02 10:07:22 +02:00
Federico Gimenez
b9341a7b47 fix(tree): use in-memory data first to query total difficulty (#11382) 2024-10-01 18:57:32 +00:00
Matthias Seitz
2d221dbf49 fix: use pending state if available (#11391) 2024-10-01 18:34:14 +00:00
DaniPopes
b722272c49 chore(db): simplify Compact for Vec (#11361) 2024-10-01 17:44:59 +00:00
joshieDo
22ddc98c06 fix(provider): handle race on fn transaction_id (#11380) 2024-10-01 17:42:29 +00:00
DaniPopes
fbc01d6cfa chore(deps): bump some breaking deps (#11388) 2024-10-01 17:26:47 +00:00
greged93
15e3e0e110 dev: block_with_senders on BlockState (#11363)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-10-01 13:40:09 +00:00
joshieDo
b29d81c859 fix(provider): use canonical_chain on range lookups (#11332) 2024-10-01 12:29:04 +00:00