Skip to content

Commit

Permalink
chore: update testnet genesis and core nightly (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Mar 8, 2024
1 parent b1d3a52 commit 54471f6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
6 changes: 4 additions & 2 deletions packages/dashmate/configs/defaults/getLocalConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default function getLocalConfigFactory(getBaseConfig) {
},
core: {
docker: {
image: 'dashpay/dashd:20.1.0-devpr5855.4d19698f', commandArgs: [],
image: 'dashpay/dashd:20.1.0-nightly.2024.02.15',
commandArgs: [],
},
p2p: {
port: 20001,
Expand Down Expand Up @@ -83,7 +84,8 @@ export default function getLocalConfigFactory(getBaseConfig) {
network: NETWORK_LOCAL,
};

return new Config('local', lodashMerge({}, getBaseConfig().getOptions(), options));
return new Config('local', lodashMerge({}, getBaseConfig()
.getOptions(), options));
}

return getLocalConfig;
Expand Down
12 changes: 7 additions & 5 deletions packages/dashmate/configs/defaults/getTestnetConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) {
},
core: {
docker: {
image: 'dashpay/dashd:20.1.0-devpr5855.4d19698f', commandArgs: [],
image: 'dashpay/dashd:20.1.0-nightly.2024.02.15',
commandArgs: [],
},
p2p: {
port: 19999,
Expand Down Expand Up @@ -88,10 +89,10 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) {
port: 36660,
},
genesis: {
genesis_time: '2023-11-02T10:18:00.000Z',
chain_id: 'dash-testnet-37',
genesis_time: '2024-03-07T13:26:00.000Z',
chain_id: 'dash-testnet-39',
validator_quorum_type: 6,
initial_core_chain_locked_height: 918609,
initial_core_chain_locked_height: 984306,
},
},
},
Expand Down Expand Up @@ -119,7 +120,8 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) {
network: NETWORK_TESTNET,
};

return new Config('testnet', lodashMerge({}, getBaseConfig().getOptions(), options));
return new Config('testnet', lodashMerge({}, getBaseConfig()
.getOptions(), options));
}

return getTestnetConfig;
Expand Down
13 changes: 13 additions & 0 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,19 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs)

return configFile;
},
'1.0.0-dev.7': (configFile) => {
Object.entries(configFile.configs)
.forEach(([name, options]) => {
if (options.network === NETWORK_TESTNET && name !== 'base') {
options.platform.drive.tenderdash.genesis = testnet.get('platform.drive.tenderdash.genesis');
}

const defaultConfig = getDefaultConfigByNameOrGroup(name, options.group);
options.core.docker.image = defaultConfig.get('core.docker.image');
});

return configFile;
},
};
}

Expand Down

0 comments on commit 54471f6

Please sign in to comment.