From 1c8cea8ca50b6342988741ce49fc4036518de35a Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Fri, 8 Mar 2024 22:21:00 +0700 Subject: [PATCH] chore(dashmate): upgrade to Core 20.1 --- .../dashmate/configs/defaults/getLocalConfigFactory.js | 2 +- .../dashmate/configs/defaults/getTestnetConfigFactory.js | 2 +- .../dashmate/configs/getConfigFileMigrationsFactory.js | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/dashmate/configs/defaults/getLocalConfigFactory.js b/packages/dashmate/configs/defaults/getLocalConfigFactory.js index 27457d3ba4f..88b2870fc9e 100644 --- a/packages/dashmate/configs/defaults/getLocalConfigFactory.js +++ b/packages/dashmate/configs/defaults/getLocalConfigFactory.js @@ -25,7 +25,7 @@ export default function getLocalConfigFactory(getBaseConfig) { }, core: { docker: { - image: 'dashpay/dashd:20.1.0-nightly.2024.02.15', + image: 'dashpay/dashd:20.1.0', commandArgs: [], }, p2p: { diff --git a/packages/dashmate/configs/defaults/getTestnetConfigFactory.js b/packages/dashmate/configs/defaults/getTestnetConfigFactory.js index 889db4ef36c..9bbd65df22a 100644 --- a/packages/dashmate/configs/defaults/getTestnetConfigFactory.js +++ b/packages/dashmate/configs/defaults/getTestnetConfigFactory.js @@ -25,7 +25,7 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) { }, core: { docker: { - image: 'dashpay/dashd:20.1.0-nightly.2024.02.15', + image: 'dashpay/dashd:20.1.0', commandArgs: [], }, p2p: { diff --git a/packages/dashmate/configs/getConfigFileMigrationsFactory.js b/packages/dashmate/configs/getConfigFileMigrationsFactory.js index 95e0b6b8dd0..e3a91df9018 100644 --- a/packages/dashmate/configs/getConfigFileMigrationsFactory.js +++ b/packages/dashmate/configs/getConfigFileMigrationsFactory.js @@ -488,6 +488,15 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs) return configFile; }, + '1.0.0-dev.8': (configFile) => { + Object.entries(configFile.configs) + .forEach(([name, options]) => { + const defaultConfig = getDefaultConfigByNameOrGroup(name, options.group); + options.core.docker.image = defaultConfig.get('core.docker.image'); + }); + + return configFile; + }, }; }