Skip to content

Commit f91be75

Browse files
authored
Merge pull request #1971 from opentensor/reduce_register_cost_fast_block
fix e2e test stability
2 parents 1ead833 + e4d743e commit f91be75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

evm-tests/src/subtensor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function addNewSubnetwork(api: TypedApi<typeof devnet>, hotkey: Key
3232
// force set balance for a ss58 address
3333
export async function forceSetBalanceToSs58Address(api: TypedApi<typeof devnet>, ss58Address: string) {
3434
const alice = getAliceSigner()
35-
const balance = tao(1e8)
35+
const balance = tao(1e10)
3636
const internalCall = api.tx.Balances.force_set_balance({ who: MultiAddress.Id(ss58Address), new_free: balance })
3737
const tx = api.tx.Sudo.sudo({ call: internalCall.decodedCall })
3838

runtime/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 303,
223+
spec_version: 304,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,
@@ -1144,7 +1144,7 @@ parameter_types! {
11441144
pub const SubtensorInitialSenateRequiredStakePercentage: u64 = 1; // 1 percent of total stake
11451145
pub const SubtensorInitialNetworkImmunity: u64 = 7 * 7200;
11461146
pub const SubtensorInitialMinAllowedUids: u16 = 128;
1147-
pub const SubtensorInitialMinLockCost: u64 = 1_000_000_000_000; // 1000 TAO
1147+
pub const SubtensorInitialMinLockCost: u64 = prod_or_fast!(1_000_000_000_000, 100_000_000_000); // 1000 TAO for prod, 100 TAO for fast
11481148
pub const SubtensorInitialSubnetOwnerCut: u16 = 11_796; // 18 percent
11491149
// pub const SubtensorInitialSubnetLimit: u16 = 12; // (DEPRECATED)
11501150
pub const SubtensorInitialNetworkLockReductionInterval: u64 = 14 * 7200;

0 commit comments

Comments
 (0)