Skip to content

Commit d0c1b35

Browse files
committed
fix lint
1 parent 1adc81a commit d0c1b35

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

beacon_node/beacon_chain/src/test_utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,8 @@ where
944944
// BeaconChain errors out with `DuplicateFullyImported`. Vary the graffiti so that we produce
945945
// different blocks each time.
946946
let graffiti = Graffiti::from(self.rng.lock().random::<[u8; 32]>());
947+
let graffiti_settings =
948+
GraffitiSettings::new(Some(graffiti), Some(GraffitiPolicy::PreserveUserGraffiti));
947949

948950
let randao_reveal = self.sign_randao_reveal(&state, proposer_index, slot);
949951

@@ -957,7 +959,7 @@ where
957959
None,
958960
slot,
959961
randao_reveal,
960-
Some(graffiti),
962+
graffiti_settings,
961963
ProduceBlockVerification::VerifyRandao,
962964
builder_boost_factor,
963965
BlockProductionVersion::V3,

validator_client/validator_services/src/block_service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use beacon_node_fallback::{ApiTopic, BeaconNodeFallback, Error as FallbackError, Errors};
2-
use bls::{PublicKeyBytes, SignatureBytes};
2+
use bls::PublicKeyBytes;
33
use eth2::types::GraffitiPolicy;
44
use eth2::{BeaconNodeHttpClient, StatusCode};
55
use graffiti_file::{GraffitiFile, determine_graffiti};
@@ -476,6 +476,7 @@ impl<S: ValidatorStore + 'static, T: SlotClock + 'static> BlockService<S, T> {
476476
randao_reveal_ref,
477477
graffiti.as_ref(),
478478
builder_boost_factor,
479+
self_ref.graffiti_policy,
479480
)
480481
.await
481482
})
@@ -502,6 +503,7 @@ impl<S: ValidatorStore + 'static, T: SlotClock + 'static> BlockService<S, T> {
502503
randao_reveal_ref,
503504
graffiti.as_ref(),
504505
builder_boost_factor,
506+
self_ref.graffiti_policy,
505507
)
506508
.await
507509
.map_err(|e| {

0 commit comments

Comments
 (0)