From 99bdeb231bc36ef8bc3f44102c4babea012b4351 Mon Sep 17 00:00:00 2001 From: pshenmic Date: Sun, 25 Aug 2024 20:15:45 +0700 Subject: [PATCH] feat(dashmate): update testnet config (#2079) Co-authored-by: Ivan Shumkov --- packages/dashmate/configs/defaults/getTestnetConfigFactory.js | 2 +- packages/dashmate/configs/getConfigFileMigrationsFactory.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/dashmate/configs/defaults/getTestnetConfigFactory.js b/packages/dashmate/configs/defaults/getTestnetConfigFactory.js index f74729da4f..f7c7baca5c 100644 --- a/packages/dashmate/configs/defaults/getTestnetConfigFactory.js +++ b/packages/dashmate/configs/defaults/getTestnetConfigFactory.js @@ -113,7 +113,7 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) { port: 36660, }, genesis: { - chain_id: 'dash-testnet-49', + chain_id: 'dash-testnet-51', validator_quorum_type: 6, initial_core_chain_locked_height: 918609, }, diff --git a/packages/dashmate/configs/getConfigFileMigrationsFactory.js b/packages/dashmate/configs/getConfigFileMigrationsFactory.js index 58430186c7..e4207dd4ad 100644 --- a/packages/dashmate/configs/getConfigFileMigrationsFactory.js +++ b/packages/dashmate/configs/getConfigFileMigrationsFactory.js @@ -834,6 +834,10 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs) Object.entries(configFile.configs) .forEach(([, options]) => { options.platform.drive.tenderdash.docker.image = 'dashpay/tenderdash:1.2.0'; + + if (options.network === NETWORK_TESTNET) { + options.platform.drive.tenderdash.genesis.chain_id = 'dash-testnet-51'; + } }); return configFile; },