Skip to content

Commit 39c5411

Browse files
committed
add allow_reprocess flag
1 parent a8f3afe commit 39c5411

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

beacon_node/network/src/network_beacon_processor/gossip_methods.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
408408
/// This function performs the conversion, and if successful queues a new message to be
409409
/// processed by `process_gossip_attestation`. If unsuccessful due to block unavailability,
410410
/// a retry message will be pushed.
411-
/// TODO(beacon-processor) should we add a bool to enable/disable retry?
412411
#[allow(clippy::too_many_arguments)]
413412
pub fn process_gossip_attestation_to_convert(
414413
self: Arc<Self>,
@@ -417,6 +416,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
417416
single_attestation: Box<SingleAttestation>,
418417
subnet_id: SubnetId,
419418
should_import: bool,
419+
should_reprocess: bool,
420420
seen_timestamp: Duration,
421421
) {
422422
let conversion_result = self.chain.with_committee_cache(
@@ -495,6 +495,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
495495
single_attestation,
496496
subnet_id,
497497
should_import,
498+
false,
498499
seen_timestamp,
499500
)
500501
}),
@@ -1198,7 +1199,6 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
11981199
/// be downloaded.
11991200
///
12001201
/// Raises a log if there are errors.
1201-
/// TODO(beacon-processor) allow_reprocess flag?
12021202
#[allow(clippy::too_many_arguments)]
12031203
pub async fn process_gossip_block(
12041204
self: Arc<Self>,
@@ -1530,7 +1530,6 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
15301530
/// Process the beacon block that has already passed gossip verification.
15311531
///
15321532
/// Raises a log if there are errors.
1533-
/// TODO(beacon-processor) allow reprocess?
15341533
pub async fn process_gossip_verified_block(
15351534
self: Arc<Self>,
15361535
peer_id: PeerId,

beacon_node/network/src/network_beacon_processor/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
9292
package.attestation,
9393
package.subnet_id,
9494
package.should_import,
95+
true,
9596
package.seen_timestamp,
9697
)
9798
};

0 commit comments

Comments
 (0)