From defa733307cda55b328a16cf95d48473ffaf2e54 Mon Sep 17 00:00:00 2001 From: "Alisher A. Khassanov" Date: Mon, 25 Nov 2024 14:49:04 +0500 Subject: [PATCH] Keep validation activities on a call error --- pallets/ddc-verification/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pallets/ddc-verification/src/lib.rs b/pallets/ddc-verification/src/lib.rs index 242a5db39..76e5e5953 100644 --- a/pallets/ddc-verification/src/lib.rs +++ b/pallets/ddc-verification/src/lib.rs @@ -1215,10 +1215,12 @@ pub mod pallet { Ok(_) => { // Extrinsic call succeeded log::info!( - "🏭📝Sent end_billing_report successfully for cluster_id: {:?}, era_id: {:?}", - cluster_id, - era_id - ); + "🏭📝Sent end_billing_report successfully for cluster_id: {:?}, era_id: {:?}", + cluster_id, + era_id + ); + + Self::clear_validation_activities(&cluster_id, era_id); }, Err(e) => { log::error!( @@ -1238,8 +1240,6 @@ pub mod pallet { log::error!("🏭❌No account available to sign the transaction"); errors.push(OCWError::NoAvailableSigner); } - - Self::clear_validation_activities(&cluster_id, era_id); }, Ok(None) => { log::info!(