Skip to content

Commit

Permalink
chore(dashmate): update genesis config to the latest testnet (#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Jul 24, 2024
1 parent eb6fa5d commit 799fd04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) {
},
genesis: {
genesis_time: '2024-07-17T17:15:00.000Z',
chain_id: 'dash-testnet-47',
chain_id: 'dash-testnet-48',
validator_quorum_type: 6,
},
},
Expand Down
9 changes: 9 additions & 0 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,15 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs)
});
return configFile;
},
'1.0.0-rc.2': (configFile) => {
Object.entries(configFile.configs)
.forEach(([, options]) => {
if (options.network === NETWORK_TESTNET) {
options.platform.drive.tenderdash.genesis = testnet.get('platform.drive.tenderdash.genesis');
}
});
return configFile;
},
};
}

Expand Down

0 comments on commit 799fd04

Please sign in to comment.