From 784375cf7e2db263e8371e9765519c38c4fe8802 Mon Sep 17 00:00:00 2001 From: Jesse Abramowitz Date: Mon, 9 Dec 2024 16:39:11 -0500 Subject: [PATCH] logging --- pallets/propagation/src/lib.rs | 1 + pallets/staking/src/lib.rs | 1 + runtime/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/propagation/src/lib.rs b/pallets/propagation/src/lib.rs index 885ea5244..900b65a01 100644 --- a/pallets/propagation/src/lib.rs +++ b/pallets/propagation/src/lib.rs @@ -159,6 +159,7 @@ pub mod pallet { pub fn post_reshare(block_number: BlockNumberFor) -> Result<(), http::Error> { let reshare_data = pallet_staking_extension::Pallet::::reshare_data(); if reshare_data.block_number + sp_runtime::traits::One::one() != block_number { + log::warn!("reshare block numbers: {:?}, {:?}", reshare_data.block_number + sp_runtime::traits::One::one(), block_number); return Ok(()); } diff --git a/pallets/staking/src/lib.rs b/pallets/staking/src/lib.rs index 396a2d83c..046d56ed0 100644 --- a/pallets/staking/src/lib.rs +++ b/pallets/staking/src/lib.rs @@ -710,6 +710,7 @@ pub mod pallet { // Since not enough validators do not allow rotation // TODO: https://github.com/entropyxyz/entropy-core/issues/943 if validators.len() <= current_signers_length { + log::warn!("validtor length less than current signer"); return Ok(weight); } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index ab3318bdd..e9746c285 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -208,7 +208,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // We update this if the runtime behaviour has changed. When this happens we set the // `impl_version` to `0`. #[allow(clippy::zero_prefixed_literal)] - spec_version: 00_03_01, + spec_version: 00_03_02, // We only bump this if the runtime behaviour remains unchanged, but the implementations details // have changed.