From bdd42c8802d8c8bd5ec01e20c03fe989307e21a0 Mon Sep 17 00:00:00 2001 From: camfairchild Date: Thu, 18 Dec 2025 18:58:59 -0500 Subject: [PATCH 1/3] spec bump --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7675bc0d6f..52746675f9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -241,7 +241,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 364, + spec_version: 365, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 1a82d05214653d963857504e06b6b854b3326a26 Mon Sep 17 00:00:00 2001 From: camfairchild Date: Thu, 18 Dec 2025 19:00:44 -0500 Subject: [PATCH 2/3] clear taoflow when removing network --- pallets/subtensor/src/coinbase/root.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pallets/subtensor/src/coinbase/root.rs b/pallets/subtensor/src/coinbase/root.rs index d508a0162b..328ce3805c 100644 --- a/pallets/subtensor/src/coinbase/root.rs +++ b/pallets/subtensor/src/coinbase/root.rs @@ -298,6 +298,8 @@ impl Pallet { SubnetTaoInEmission::::remove(netuid); SubnetVolume::::remove(netuid); SubnetMovingPrice::::remove(netuid); + SubnetTaoFlow::::remove(netuid); + SubnetEmaTaoFlow::::remove(netuid); SubnetTaoProvided::::remove(netuid); // --- 13. Token / mechanism / registration toggles. From 9328113068a45e67f409a253febeed9d4766ff57 Mon Sep 17 00:00:00 2001 From: camfairchild Date: Thu, 18 Dec 2025 19:05:34 -0500 Subject: [PATCH 3/3] add test --- pallets/subtensor/src/tests/networks.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pallets/subtensor/src/tests/networks.rs b/pallets/subtensor/src/tests/networks.rs index 00b894ac5a..8214d58be0 100644 --- a/pallets/subtensor/src/tests/networks.rs +++ b/pallets/subtensor/src/tests/networks.rs @@ -368,6 +368,10 @@ fn dissolve_clears_all_per_subnet_storages() { SubnetTaoProvided::::insert(net, TaoCurrency::from(1)); SubnetAlphaInProvided::::insert(net, AlphaCurrency::from(1)); + // TAO Flow + SubnetTaoFlow::::insert(net, 0i64); + SubnetEmaTaoFlow::::insert(net, (0u64, substrate_fixed::types::I64F64::from_num(0))); + // Subnet locks TransferToggle::::insert(net, true); SubnetLocked::::insert(net, TaoCurrency::from(1)); @@ -500,6 +504,10 @@ fn dissolve_clears_all_per_subnet_storages() { assert!(!SubnetTaoInEmission::::contains_key(net)); assert!(!SubnetVolume::::contains_key(net)); + // TAO Flow + assert!(!SubnetTaoFlow::::contains_key(net)); + assert!(!SubnetEmaTaoFlow::::contains_key(net)); + // These are now REMOVED assert!(!SubnetAlphaIn::::contains_key(net)); assert!(!SubnetAlphaOut::::contains_key(net));