Skip to content

Commit e64f372

Browse files
committed
Fixes hsm port
1 parent 3c236be commit e64f372

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

config/node-configs/third-federation/fed4.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ federator {
1414
BTC {
1515
type = "hsm"
1616
host = "127.0.0.1"
17-
port = 9983
17+
port = 9985
1818
keyId = "m/44'/1'/0'/0/0"
1919
bookkeeping {
2020
difficultyTarget = "3"
@@ -29,13 +29,13 @@ federator {
2929
RSK {
3030
type = "hsm"
3131
host = "127.0.0.1"
32-
port = 9983
32+
port = 9985
3333
keyId = "m/44'/1'/1'/0/0"
3434
}
3535
MST {
3636
type = "hsm"
3737
host = "127.0.0.1"
38-
port = 9983
38+
port = 9985
3939
keyId = "m/44'/1'/2'/0/0"
4040
}
4141
}

config/regtest-key-files-and-hsms.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const bookkeepingConfigurations = {
1111
maxChunkSizeToHsm: "100"
1212
};
1313

14+
const DIFFICULTY_TARGET_IN_HEX = DIFFICULTY_TARGET_IN_HEX;
15+
1416
module.exports = {
1517
init: {
1618
mineInitialBitcoin: true,
@@ -185,7 +187,7 @@ module.exports = {
185187
federationId: 'second-federation',
186188
type: 'hsm',
187189
hsmPort: 9981,
188-
hsmDifficultyTarget: '0x03',
190+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
189191
logbackFile: `${federatesLogbackPath}/second-federation/fed2.xml`,
190192
classpath: powpegNodeJarPath,
191193
configFile: `${nodesConfigPath}/second-federation/fed2.conf`,
@@ -220,7 +222,7 @@ module.exports = {
220222
federationId: 'second-federation',
221223
type: 'hsm',
222224
hsmPort: 9983,
223-
hsmDifficultyTarget: '0x03',
225+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
224226
logbackFile: `${federatesLogbackPath}/second-federation/fed3.xml`,
225227
classpath: powpegNodeJarPath,
226228
configFile: `${nodesConfigPath}/second-federation/fed3.conf`,
@@ -307,7 +309,7 @@ module.exports = {
307309
federationId: 'third-federation',
308310
type: 'hsm',
309311
hsmPort: 9987,
310-
hsmDifficultyTarget: '0x03',
312+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
311313
logbackFile: `${federatesLogbackPath}/third-federation/fed2.xml`,
312314
classpath: powpegNodeJarPath,
313315
configFile: `${nodesConfigPath}/third-federation/fed2.conf`,
@@ -380,8 +382,8 @@ module.exports = {
380382
id: 'federator-4-third-federation',
381383
federationId: 'third-federation',
382384
type: 'hsm',
383-
hsmPort: 9983,
384-
hsmDifficultyTarget: '0x03',
385+
hsmPort: 9985,
386+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
385387
logbackFile: `${federatesLogbackPath}/third-federation/fed4.xml`,
386388
classpath: powpegNodeJarPath,
387389
configFile: `${nodesConfigPath}/third-federation/fed4.conf`,
@@ -464,7 +466,7 @@ module.exports = {
464466
federationId: 'fourth-federation',
465467
type: 'hsm',
466468
hsmPort: 9991,
467-
hsmDifficultyTarget: '0x03',
469+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
468470
logbackFile: `${federatesLogbackPath}/fourth-federation/fed2.xml`,
469471
classpath: powpegNodeJarPath,
470472
configFile: `${nodesConfigPath}/fourth-federation/fed2.conf`,
@@ -538,7 +540,7 @@ module.exports = {
538540
federationId: 'fourth-federation',
539541
type: 'hsm',
540542
hsmPort: 9989,
541-
hsmDifficultyTarget: '0x03',
543+
hsmDifficultyTarget: DIFFICULTY_TARGET_IN_HEX,
542544
logbackFile: `${federatesLogbackPath}/fourth-federation/fed4.xml`,
543545
classpath: powpegNodeJarPath,
544546
configFile: `${nodesConfigPath}/fourth-federation/fed4.conf`,

0 commit comments

Comments
 (0)