Skip to content

Commit e7f0ecf

Browse files
authored
Merge branch 'master' into feat-validate-space-strategies
2 parents 6c57cdf + c36c82e commit e7f0ecf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/helpers/mysql.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ hubConfig.connectTimeout = 60e3;
2121
hubConfig.acquireTimeout = 60e3;
2222
hubConfig.timeout = 60e3;
2323
hubConfig.charset = 'utf8mb4';
24+
hubConfig.ssl = { rejectUnauthorized: hubConfig.host !== 'localhost' };
25+
2426
const hubDB = mysql.createPool(hubConfig);
2527

2628
// @ts-ignore
@@ -34,6 +36,8 @@ sequencerConfig.connectTimeout = 60e3;
3436
sequencerConfig.acquireTimeout = 60e3;
3537
sequencerConfig.timeout = 60e3;
3638
sequencerConfig.charset = 'utf8mb4';
39+
sequencerConfig.ssl = { rejectUnauthorized: sequencerConfig.host !== 'localhost' };
40+
3741
const sequencerDB = mysql.createPool(sequencerConfig);
3842

3943
export { hubDB as default, sequencerDB };

test/.env.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
HUB_DATABASE_URL=mysql://root:root@127.0.0.1:3306/snapshot_sequencer_test
2-
SEQ_DATABASE_URL=mysql://root:root@127.0.0.1:3306/snapshot_sequencer_test
1+
HUB_DATABASE_URL=mysql://root:root@localhost:3306/snapshot_sequencer_test
2+
SEQ_DATABASE_URL=mysql://root:root@localhost:3306/snapshot_sequencer_test
33
NETWORK=mainnet
44
RELAYER_PK=01686849e86499c1860ea0afc97f29c11018cbac049abf843df875c60054076e
55
NODE_ENV=test

0 commit comments

Comments
 (0)