Skip to content

Commit 6eaaeb5

Browse files
fix: don't throw an error when work was already processed (#1834)
1 parent 05bcb00 commit 6eaaeb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

forester/src/epoch_manager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,10 @@ impl<R: Rpc, I: Indexer + IndexerType<R> + 'static> EpochManager<R, I> {
12481248
info!("Work reported");
12491249
}
12501250
Err(e) => {
1251+
if e.to_string().contains("already been processed") {
1252+
info!("Work already reported for epoch {}", epoch_info.epoch.epoch);
1253+
return Ok(());
1254+
}
12511255
if let RpcError::ClientError(client_error) = &e {
12521256
if let Some(TransactionError::InstructionError(
12531257
_,

0 commit comments

Comments
 (0)