Skip to content

Commit 6e5cb5e

Browse files
committed
Fix empty quorum-list RPC password in generated Dashmate config
1 parent 636236c commit 6e5cb5e

3 files changed

Lines changed: 4 additions & 20 deletions

File tree

ansible/deploy.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,8 @@
22

33
# TEMPORARY DEBUG MODE
44
# Early plays already passed in CI and are skipped to speed up iteration.
5-
# Current resume point: Activate sporks. Restore the full playbook after debugging.
6-
7-
- name: Activate sporks
8-
hosts: wallet_nodes
9-
become: true
10-
roles:
11-
- role: activate_dashd_sporks
12-
when: dash_network != "mainnet" and dash_network != "testnet"
13-
delegate_to: '{{ play_hosts | first }}'
14-
tags:
15-
- full_deploy
16-
17-
# todo: partially working code causes errors in deploy, comment out for now and fix later
18-
# - name: Create governance proposals
19-
# hosts: wallet_nodes
20-
# become: true
21-
# roles:
22-
# - role: generate_proposals
23-
# when: governance_proposal_count > 0
5+
# Current resume point: Set up core and platform on HP masternodes.
6+
# Restore the full playbook after debugging.
247

258
- name: Set up core and platform on HP masternodes
269
hosts: hp_masternodes

ansible/roles/dashmate/templates/dashmate.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"lowPriority": false
6161
},
6262
"quorum_list": {
63-
"password": "{{ dashmate_core_rpc_quorum_list_password | default(dashmate_core_rpc_dashmate_password) }}",
63+
"password": "{{ dashmate_core_rpc_quorum_list_password | default(dashmate_core_rpc_dashmate_password, true) }}",
6464
"whitelist": [
6565
"quorum", "masternode", "getblockcount"
6666
],

lib/configGenerator/generateAnsibleConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ async function generateAnsibleConfig(
155155

156156
config.dashmate_core_rpc_dashmate_password = crypto.randomBytes(32)
157157
.toString('base64').slice(0, 32);
158+
config.dashmate_core_rpc_quorum_list_password = config.dashmate_core_rpc_dashmate_password;
158159
config.dashmate_core_rpc_dapi_password = crypto.randomBytes(32)
159160
.toString('base64').slice(0, 32);
160161
config.dashmate_core_rpc_drive_consensus_password = crypto.randomBytes(32)

0 commit comments

Comments
 (0)