Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Oct 30, 2023
1 parent 050fb91 commit 07264fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crates/payload/basic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ where
// upfront with the list of transactions sent in the attributes without caring about
// the results of the polling job, if a best payload has not already been built.
#[cfg(feature = "optimism")]
if self.config.chain_spec.optimism
&& self.config.attributes.optimism_payload_attributes.no_tx_pool
if self.config.chain_spec.optimism &&
self.config.attributes.optimism_payload_attributes.no_tx_pool
{
let args = BuildArguments {
client: self.client.clone(),
Expand Down
16 changes: 8 additions & 8 deletions crates/rpc/rpc-engine-api/src/engine_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ where
let attr_validation_res = self.validate_version_specific_fields(version, &attrs.into());

#[cfg(feature = "optimism")]
if attrs.optimism_payload_attributes.gas_limit.is_none()
&& self.inner.chain_spec.optimism
if attrs.optimism_payload_attributes.gas_limit.is_none() &&
self.inner.chain_spec.optimism
{
return Err(EngineApiError::MissingGasLimitInPayloadAttributes);
}
Expand Down Expand Up @@ -920,8 +920,8 @@ mod tests {
blocks
.iter()
.filter(|b| {
!first_missing_range.contains(&b.number)
&& !second_missing_range.contains(&b.number)
!first_missing_range.contains(&b.number) &&
!second_missing_range.contains(&b.number)
})
.map(|b| (b.hash(), b.clone().unseal())),
);
Expand Down Expand Up @@ -950,8 +950,8 @@ mod tests {
// ensure we still return trailing `None`s here because by-hash will not be aware
// of the missing block's number, and cannot compare it to the current best block
.map(|b| {
if first_missing_range.contains(&b.number)
|| second_missing_range.contains(&b.number)
if first_missing_range.contains(&b.number) ||
second_missing_range.contains(&b.number)
{
None
} else {
Expand All @@ -977,8 +977,8 @@ mod tests {
let (handle, api) = setup_engine_api();

let transition_config = TransitionConfiguration {
terminal_total_difficulty: handle.chain_spec.fork(Hardfork::Paris).ttd().unwrap()
+ U256::from(1),
terminal_total_difficulty: handle.chain_spec.fork(Hardfork::Paris).ttd().unwrap() +
U256::from(1),
..Default::default()
};

Expand Down

0 comments on commit 07264fe

Please sign in to comment.