Put ChainsSpecs in Arc<> (#3075)

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Waylon Jepsen
2023-06-09 11:58:11 -06:00
committed by GitHub
parent 1ff26dd2fd
commit 6ef3e12fac
9 changed files with 141 additions and 128 deletions

View File

@ -1458,7 +1458,7 @@ mod test {
tables,
};
use reth_primitives::{ChainSpecBuilder, IntegerList, H160, MAINNET, U256};
use std::{ops::DerefMut, sync::Arc};
use std::ops::DerefMut;
#[test]
fn insert_block_and_hashes_get_take() {
@ -1535,7 +1535,7 @@ mod test {
// Check that transactions map onto blocks correctly.
{
let provider = ShareableDatabase::new(tx.db, Arc::new(MAINNET.clone()));
let provider = ShareableDatabase::new(tx.db, MAINNET.clone());
assert_eq!(
provider.transaction_block(0).unwrap(),
Some(1),