Fix conflicts

This commit is contained in:
Mac L
2024-01-16 20:38:46 +11:00
parent e555dc9213
commit ba322391d4

View File

@@ -553,16 +553,13 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
// Try the proposer nodes last, since it's likely that they don't have a
// great view of attestations on the network.
let unsigned_block = proposer_fallback
.request_proposers_last(
RequireSynced::No,
OfflineOnFailure::Yes,
|beacon_node| async move {
.request_proposers_last(|beacon_node| async move {
let _get_timer = metrics::start_timer_vec(
&metrics::BLOCK_SERVICE_TIMES,
&[metrics::BEACON_BLOCK_HTTP_GET],
);
let block_response = Self::get_validator_block_v3(
beacon_node,
&beacon_node,
slot,
randao_reveal_ref,
graffiti,
@@ -579,8 +576,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
});
Ok::<_, BlockError>(block_response)
},
)
})
.await??;
self_ref
@@ -660,10 +656,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
// Try the proposer nodes last, since it's likely that they don't have a
// great view of attestations on the network.
let unsigned_block = proposer_fallback
.request_proposers_last(
RequireSynced::No,
OfflineOnFailure::Yes,
move |beacon_node| {
.request_proposers_last(move |beacon_node| {
Self::get_validator_block(
beacon_node,
slot,
@@ -673,8 +666,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
builder_proposal,
log,
)
},
)
})
.await?;
self_ref