Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Sep 28, 2023
1 parent 91d37e9 commit 6878abe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ use crate::validator_monitor::{
};
use crate::validator_pubkey_cache::ValidatorPubkeyCache;
use crate::{metrics, BeaconChainError, BeaconForkChoiceStore, BeaconSnapshot, CachedHead};
use eth2::lighthouse::StandardBlockReward;
use eth2::types::{EventKind, SseBlock, SseExtendedPayloadAttributes, SyncDuty};
use execution_layer::{
BlockProposalContents, BlockProposalContentsType, BuilderParams, ChainHealth, ExecutionLayer,
Expand Down Expand Up @@ -4746,9 +4747,15 @@ impl<T: BeaconChainTypes> BeaconChain<T> {

let consensus_block_value = self
.compute_beacon_block_reward(inner_block.to_ref(), Hash256::zero(), &mut state.clone())
.unwrap()
.unwrap_or(StandardBlockReward {
proposer_index: 0,
total: 0,
attestations: 0,
sync_aggregate: 0,
proposer_slashings: 0,
attester_slashings: 0,
})
.total;


per_block_processing(
&mut state,
Expand Down
3 changes: 2 additions & 1 deletion beacon_node/http_api/src/version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::api_types::fork_versioned_response::ExecutionOptimisticFinalizedForkVersionedResponse;
use crate::api_types::EndpointVersion;
use eth2::{
CONSENSUS_VERSION_HEADER, EXECUTION_PAYLOAD_BLINDED_HEADER, EXECUTION_PAYLOAD_VALUE_HEADER, CONSENSUS_PAYLOAD_VALUE_HEADER,
CONSENSUS_PAYLOAD_VALUE_HEADER, CONSENSUS_VERSION_HEADER, EXECUTION_PAYLOAD_BLINDED_HEADER,
EXECUTION_PAYLOAD_VALUE_HEADER,
};
use serde::Serialize;
use types::{ForkName, ForkVersionedResponse, InconsistentFork, Uint256};
Expand Down

0 comments on commit 6878abe

Please sign in to comment.