Skip to content

Commit

Permalink
feat(dashmate): upgrade core to v20.0.0-beta.2 (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic authored Oct 4, 2023
1 parent f32d415 commit 0275604
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dashmate/configs/defaults/getBaseConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function getBaseConfigFactory(homeDir) {
},
core: {
docker: {
image: 'dashpay/dashd:20.0.0-alpha.10',
image: 'dashpay/dashd:20.0.0-beta.2',
},
p2p: {
port: 9999,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getTestnetConfigFactory(homeDir, getBaseConfig) {
},
core: {
docker: {
image: 'dashpay/dashd:20.0.0-alpha.10',
image: 'dashpay/dashd:20.0.0-beta.2',
},
p2p: {
port: 19999,
Expand Down
4 changes: 4 additions & 0 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function getConfigFileMigrationsFactory(homeDir, defaultConfigs) {
'0.25.0-dev.32': (configFile) => {
Object.entries(configFile.configs)
.forEach(([, options]) => {
if (options.network !== NETWORK_MAINNET) {
options.core.docker.image = base.get('core.docker.image');
}

if (options.network === NETWORK_TESTNET) {
options.platform.drive.tenderdash.genesis.chain_id = testnet.get('platform.drive.tenderdash.genesis.chain_id');
options.platform.drive.tenderdash.genesis.genesis_time = testnet.get('platform.drive.tenderdash.genesis.genesis_time');
Expand Down

0 comments on commit 0275604

Please sign in to comment.