Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update tenderdash to 1.1.0-dev.1 #1985

Merged
merged 4 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions packages/dashmate/configs/defaults/getBaseConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ import DashPayContract from '@dashevo/dashpay-contract/lib/systemIds.js';

import FeatureFlagsContract from '@dashevo/feature-flags-contract/lib/systemIds.js';

import MasternodeRewardSharesContract
from '@dashevo/masternode-reward-shares-contract/lib/systemIds.js';
import MasternodeRewardSharesContract from '@dashevo/masternode-reward-shares-contract/lib/systemIds.js';

import WithdrawalsContract from '@dashevo/withdrawals-contract/lib/systemIds.js';

import semver from 'semver';

import fs from 'fs';
import Config from '../../src/config/Config.js';
import {
NETWORK_MAINNET,
PACKAGE_ROOT_DIR,
} from '../../src/constants.js';
import Config from '../../src/config/Config.js';

const {
contractId: dpnsContractId,
Expand Down Expand Up @@ -124,7 +123,7 @@ export default function getBaseConfigFactory(homeDir) {
tenderdash: {
password: 'rpcpassword',
whitelist: [
'quoruminfo', 'quorumverify', 'quorumsign', 'masternodestatus', 'masternodelist',
'quoruminfo', 'quorumverify', 'quorumplatformsign', 'masternodestatus', 'masternodelist',
'ping', 'getnetworkinfo',
],
lowPriority: false,
Expand Down Expand Up @@ -327,7 +326,7 @@ export default function getBaseConfigFactory(homeDir) {
tenderdash: {
mode: 'full',
docker: {
image: 'dashpay/tenderdash:1.0.0',
image: 'dashpay/tenderdash:1.1.0-dev.1',
},
p2p: {
host: '0.0.0.0',
Expand Down
14 changes: 12 additions & 2 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable no-param-reassign */
import fs from 'fs';
import path from 'path';
import lodash from 'lodash';
import path from 'path';

import {
NETWORK_LOCAL,
NETWORK_TESTNET,
NETWORK_MAINNET,
NETWORK_TESTNET,
SSL_PROVIDERS,
} from '../src/constants.js';

Expand Down Expand Up @@ -703,6 +703,16 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs)
});
return configFile;
},
'1.0.0-rc.1': (configFile) => {
Object.entries(configFile.configs)
.forEach(([, options]) => {
options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image');

// Replace quorumsign with qurumplatformsign in Core RPC Tenderdash auth whitelist
options.core.rpc.users.tenderdash.whitelist = base.get('core.rpc.users.tenderdash.whitelist');
});
return configFile;
},
};
}

Expand Down
Loading