From 2a8248206dfc1f67e545404570b4b375ca658fb8 Mon Sep 17 00:00:00 2001 From: Shamil Gadelshin Date: Thu, 11 Dec 2025 19:11:17 +0300 Subject: [PATCH] Change root claim default type. --- pallets/subtensor/src/lib.rs | 2 +- pallets/subtensor/src/tests/claim_root.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 6d61baadf3..8eb5a71177 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -330,9 +330,9 @@ pub mod pallet { /// Enum for the per-coldkey root claim setting. pub enum RootClaimTypeEnum { /// Swap any alpha emission for TAO. - #[default] Swap, /// Keep all alpha emission. + #[default] Keep, /// Keep all alpha emission for specified subnets. KeepSubnets { diff --git a/pallets/subtensor/src/tests/claim_root.rs b/pallets/subtensor/src/tests/claim_root.rs index b910fa1e83..9cb94b4d1a 100644 --- a/pallets/subtensor/src/tests/claim_root.rs +++ b/pallets/subtensor/src/tests/claim_root.rs @@ -1816,3 +1816,12 @@ fn test_claim_root_keep_subnets_swap_claim_type() { ); }); } + +#[test] +fn test_claim_root_default_mode_keep() { + new_test_ext(1).execute_with(|| { + let coldkey = U256::from(1003); + + assert_eq!(RootClaimType::::get(coldkey), RootClaimTypeEnum::Keep); + }); +}