Skip to content

Commit

Permalink
chore(dashmate)!: update consensus params (dashpay#2042)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Klimek <[email protected]>
  • Loading branch information
shumkov and lklimek authored Aug 13, 2024
1 parent deb0ae6 commit 319adc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/dashmate/configs/defaults/getBaseConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default function getBaseConfigFactory(homeDir) {
tenderdash: {
mode: 'full',
docker: {
image: 'dashpay/tenderdash:1.1.0',
image: 'dashpay/tenderdash:1.2.0-dev.3',
},
p2p: {
host: '0.0.0.0',
Expand Down Expand Up @@ -388,15 +388,13 @@ export default function getBaseConfigFactory(homeDir) {
app_version: '1',
},
timeout: {
propose: '40000000000',
propose: '50000000000',
propose_delta: '5000000000',
vote: '2000000000',
vote_delta: '500000000',
commit: '1000000000',
bypass_commit_timeout: false,
vote: '10000000000',
vote_delta: '1000000000',
},
synchrony: {
message_delay: '32000000000',
message_delay: '70000000000',
precision: '1000000000',
},
abci: {
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 @@ -765,6 +765,15 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs)
});
return configFile;
},
'1.1.0-dev.1': (configFile) => {
Object.entries(configFile.configs)
.forEach(([, options]) => {
options.platform.drive.tenderdash.genesis
.consensus_params = base.get('platform.drive.tenderdash.genesis.consensus_params');
options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image');
});
return configFile;
},
};
}

Expand Down

0 comments on commit 319adc2

Please sign in to comment.