Skip to content

Commit b8eca3e

Browse files
committed
chore: fix upstream merge issues
Signed-off-by: Gregory Edison <[email protected]>
1 parent 481bdc4 commit b8eca3e

File tree

18 files changed

+841
-169
lines changed

18 files changed

+841
-169
lines changed

Cargo.lock

Lines changed: 787 additions & 136 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ revm-context = { git = "https://github.com/scroll-tech/revm", default-features =
490490
revm-context-interface = { git = "https://github.com/scroll-tech/revm", default-features = false }
491491
revm-database-interface = { git = "https://github.com/scroll-tech/revm", default-features = false }
492492
op-revm = { git = "https://github.com/scroll-tech/revm", default-features = false }
493-
revm-scroll = { git = "https://github.com/scroll-tech/scroll-revm", default-features = false }
493+
revm-scroll = { git = "https://github.com/scroll-tech/scroll-revm", branch = "feat/v86", default-features = false }
494494
revm-inspectors = "0.29.0"
495495

496496
# eth

crates/e2e-test-utils/src/testsuite/setup.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ where
163163
LocalPayloadAttributesBuilder<N::ChainSpec>: PayloadAttributesBuilder<
164164
<<N as NodeTypes>::Payload as PayloadTypes>::PayloadAttributes,
165165
>,
166+
TmpNodeAddOnsHandle<N>: RpcHandleProvider<Adapter<N>, TmpNodeEthApi<N>>,
166167
{
167168
// Create nodes with imported chain data
168169
let import_result = self.create_nodes_with_import::<N>(rlp_path).await?;
@@ -207,6 +208,7 @@ where
207208
LocalPayloadAttributesBuilder<N::ChainSpec>: PayloadAttributesBuilder<
208209
<<N as NodeTypes>::Payload as PayloadTypes>::PayloadAttributes,
209210
>,
211+
TmpNodeAddOnsHandle<N>: RpcHandleProvider<Adapter<N>, TmpNodeEthApi<N>>,
210212
{
211213
// If import_rlp_path is set, use apply_with_import instead
212214
if let Some(rlp_path) = self.import_rlp_path.take() {

crates/prune/types/src/segment.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ use thiserror::Error;
88
#[cfg_attr(any(test, feature = "reth-codec"), derive(reth_codecs::Compact))]
99
#[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(compact))]
1010
#[cfg_attr(any(test, feature = "serde"), derive(serde::Serialize, serde::Deserialize))]
11-
#[cfg_attr(test, derive(Default))]
1211
pub enum PruneSegment {
1312
/// Prune segment responsible for the `TransactionSenders` table.
14-
#[cfg_attr(test, default)]
1513
SenderRecovery,
1614
/// Prune segment responsible for the `TransactionHashNumbers` table.
1715
TransactionLookup,

crates/rpc/rpc-eth-types/src/gas_oracle.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ where
117117
price: oracle_config
118118
.default_suggested_fee
119119
.unwrap_or_else(|| GasPriceOracleResult::default().price),
120+
is_at_capacity: false,
120121
},
121122
lowest_effective_tip_cache: EffectiveTipLruCache(LruMap::new(ByLength::new(
122123
cached_values,

crates/scroll/alloy/evm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ where
139139
contract: Address,
140140
data: Bytes,
141141
) -> Result<ResultAndState<Self::HaltReason>, Self::Error> {
142-
self.inner.transact_system_call_with_caller_finalize(caller, contract, data)
142+
self.inner.system_call_with_caller(caller, contract, data)
143143
}
144144

145145
fn db_mut(&mut self) -> &mut Self::DB {

crates/scroll/alloy/provider/src/engine/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mod tests {
129129
use alloy_rpc_types_engine::{
130130
ClientCode, ClientVersionV1, ExecutionPayloadV1, ForkchoiceState, PayloadId,
131131
};
132-
use reth_engine_primitives::BeaconConsensusEngineHandle;
132+
use reth_engine_primitives::ConsensusEngineHandle;
133133
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
134134
use reth_payload_primitives::PayloadTypes;
135135
use reth_primitives::{Block, TransactionSigned};
@@ -169,7 +169,7 @@ mod tests {
169169
.socket_addr(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, 0)))
170170
.build();
171171
let (tx, _rx) = unbounded_channel();
172-
let beacon_engine_handle = BeaconConsensusEngineHandle::<ScrollEngineTypes>::new(tx);
172+
let beacon_engine_handle = ConsensusEngineHandle::<ScrollEngineTypes>::new(tx);
173173
let client = ClientVersionV1 {
174174
code: ClientCode::RH,
175175
name: "Reth".to_string(),

crates/scroll/chainspec/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,6 @@ impl EthChainSpec for ScrollChainSpec {
248248
self.inner.chain()
249249
}
250250

251-
fn base_fee_params_at_block(&self, block_number: u64) -> BaseFeeParams {
252-
self.inner.base_fee_params_at_block(block_number)
253-
}
254-
255251
fn base_fee_params_at_timestamp(&self, timestamp: u64) -> BaseFeeParams {
256252
self.inner.base_fee_params_at_timestamp(timestamp)
257253
}

crates/scroll/cli/src/app.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ where
6868
let _ = install_prometheus_recorder();
6969

7070
let components = |spec: Arc<ScrollChainSpec>| {
71-
(ScrollExecutorProvider::scroll(spec.clone()), ScrollBeaconConsensus::new(spec))
71+
(
72+
ScrollExecutorProvider::scroll(spec.clone()),
73+
Arc::new(ScrollBeaconConsensus::new(spec)),
74+
)
7275
};
7376

7477
match self.cli.command {

crates/scroll/cli/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@ use reth_cli_commands::{launcher::FnLauncher, node::NoArgs};
1515
use reth_cli_runner::CliRunner;
1616
use reth_db::DatabaseEnv;
1717
use reth_node_builder::{NodeBuilder, WithLaunchContext};
18-
use reth_node_core::{
19-
args::LogArgs,
20-
version::{LONG_VERSION, SHORT_VERSION},
21-
};
18+
use reth_node_core::{args::LogArgs, version::version_metadata};
2219
use reth_scroll_chainspec::ScrollChainSpec;
2320
use std::{ffi::OsString, fmt, future::Future, sync::Arc};
2421

2522
/// The main scroll cli interface.
2623
///
2724
/// This is the entrypoint to the executable.
2825
#[derive(Debug, Parser)]
29-
#[command(author, version = SHORT_VERSION, long_version = LONG_VERSION, about = "Scroll Reth", long_about = None
26+
#[command(author, version = version_metadata().short_version.as_ref(), long_version = version_metadata().long_version.as_ref(), about = "Scroll Reth", long_about = None
3027
)]
3128
pub struct Cli<Spec: ChainSpecParser = ScrollChainSpecParser, Ext: clap::Args + fmt::Debug = NoArgs>
3229
{

0 commit comments

Comments
 (0)