Skip to content

Commit fee9be5

Browse files
committed
recovering host check for federator process
1 parent eeb9521 commit fee9be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

federator/src/lib/Federator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module.exports = class Federator {
1313
this.config = config;
1414
this.logger = logger;
1515

16-
//if (!utils.checkHttpsOrLocalhost(config.mainchain.host)) {
17-
// throw new Error(`Invalid host configuration, https or localhost required`);
18-
//}
16+
if (!utils.checkHttpsOrLocalhost(config.mainchain.host)) {
17+
throw new Error(`Invalid host configuration, https or localhost required`);
18+
}
1919

2020
this.mainWeb3 = new Web3(config.mainchain.host);
2121
this.sideWeb3 = new Web3(config.sidechain.host);

0 commit comments

Comments
 (0)