Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wallet/core/src/utxo/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ static TESTNET10_NETWORK_PARAMS: LazyLock<NetworkParams> = LazyLock::new(|| Netw
additional_compound_transaction_mass: 100,
});

static TESTNET12_NETWORK_PARAMS: LazyLock<NetworkParams> = LazyLock::new(|| NetworkParams {
coinbase_transaction_maturity_period_daa: AtomicU64::new(1_000),
coinbase_transaction_stasis_period_daa: 500,
user_transaction_maturity_period_daa: AtomicU64::new(100),
additional_compound_transaction_mass: 100,
});

static SIMNET_NETWORK_PARAMS: LazyLock<NetworkParams> = LazyLock::new(|| NetworkParams {
coinbase_transaction_maturity_period_daa: AtomicU64::new(1_000),
coinbase_transaction_stasis_period_daa: 500,
Expand All @@ -77,6 +84,7 @@ impl NetworkParams {
NetworkType::Mainnet => &MAINNET_NETWORK_PARAMS,
NetworkType::Testnet => match value.suffix {
Some(10) => &TESTNET10_NETWORK_PARAMS,
Some(12) => &TESTNET12_NETWORK_PARAMS,
Some(x) => panic!("Testnet suffix {} is not supported", x),
None => panic!("Testnet suffix not provided"),
},
Expand Down