pub fn development_config() -> Result<ChainSpec, String> {
let wasm_binary = WASM_BINARY.ok_or_else(|| "Development wasm not available".to_string())?;
Ok(ChainSpec::from_genesis(
// Name
"Development",
// ID
"dev",
ChainType::Development,
move || {
testnet_genesis(
wasm_binary,
// Initial PoA authorities
vec![authority_keys_from_seed("Mrisho")],
// Sudo account
get_account_id_from_seed::<sr25519::Public>("Mrisho"),
// Pre-funded accounts
vec![
get_account_id_from_seed::<sr25519::Public>("Mrisho"),
get_account_id_from_seed::<sr25519::Public>("Masanja"),
],
true,
)
},
// Bootnodes
vec![],
// Telemetry
None,
// Protocol ID
None,
// Properties
None,
// Extensions
None,
))
}
pub fn local_testnet_config() -> Result<ChainSpec, String> {
let wasm_binary = WASM_BINARY.ok_or_else(|| "Development wasm not available".to_string())?;
Ok(ChainSpec::from_genesis(
// Name
"Local Testnet",
// ID
"local_testnet",
ChainType::Local,
move || {
testnet_genesis(
wasm_binary,
// Initial PoA authorities
vec![authority_keys_from_seed("Mrisho"), authority_keys_from_seed("Masanja")],
// Sudo account
get_account_id_from_seed::<sr25519::Public>("Mrisho"),
// Pre-funded accounts
vec![
get_account_id_from_seed::<sr25519::Public>("Mrisho"),
get_account_id_from_seed::<sr25519::Public>("Masanja"),
],
true,
)
},
// Bootnodes
vec![],
// Telemetry
None,
// Protocol ID
None,
// Properties
None,
// Extensions
None,
))
}
In the node template I modified my chain spec.rs and generated json file and everything is well. But when I run my node via node-template --dev --tmp. Or via specifying the json file ./node-template —chain chain spec.json. The accounts which I defined they aren't present while viewing my node in the polkadot.js. Despite deleting them, the alice ,bob and other predefined accounts are the only visible accounts.