Skip to content

Commit

Permalink
Use zero existential deposit (#48)
Browse files Browse the repository at this point in the history
* Update ED

* Update `candidacy_bond`
  • Loading branch information
boundless-forest committed Nov 17, 2022
1 parent b27c66d commit 46c6002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use serde::{Deserialize, Serialize};
// cumulus
use cumulus_primitives_core::ParaId;
// darwinia
use darwinia_runtime::{AuraId, DarwiniaPrecompiles, EvmConfig, Runtime, EXISTENTIAL_DEPOSIT};
use darwinia_runtime::{AuraId, DarwiniaPrecompiles, EvmConfig, Runtime};
use dc_primitives::*;
// frontier
use fp_evm::GenesisAccount;
Expand Down Expand Up @@ -226,7 +226,7 @@ fn testnet_genesis(
parachain_info: darwinia_runtime::ParachainInfoConfig { parachain_id: id },
collator_selection: darwinia_runtime::CollatorSelectionConfig {
invulnerables: invulnerables.iter().cloned().map(|(acc, _)| acc).collect(),
candidacy_bond: EXISTENTIAL_DEPOSIT * 16,
candidacy_bond: UNIT,
..Default::default()
},
session: darwinia_runtime::SessionConfig {
Expand Down
5 changes: 4 additions & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ pub fn run() -> Result<()> {
log::info!("Parachain id: {:?}", id);
log::info!("Parachain Account: {}", parachain_account);
log::info!("Parachain genesis state: {}", genesis_state);
log::info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
log::info!(
"Is collating: {}",
if config.role.is_authority() { "yes" } else { "no" }
);

crate::service::start_parachain_node(
config,
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
state_version: 1,
};

/// The existential deposit. Set to 1/10 of the Connected Relay Chain.
pub const EXISTENTIAL_DEPOSIT: Balance = MILLIUNIT;
/// The existential deposit.
pub const EXISTENTIAL_DEPOSIT: Balance = 0;

/// The version information used to identify this runtime when compiled natively.
#[cfg(feature = "std")]
Expand Down

0 comments on commit 46c6002

Please sign in to comment.