Skip to content

Commit 4f1bc4d

Browse files
committed
feat(config): enable xud encryption by default
1 parent 2bd16f7 commit 4f1bc4d

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

Diff for: lib/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Config {
7070
/** Whether matching will be disabled */
7171
public nomatching = false;
7272
/** Whether a password should not be used to encrypt the xud key and underlying wallets. */
73-
public noencrypt = true; // TODO: enable encryption by default
73+
public noencrypt = false;
7474
/**
7575
* Whether to disable sanity swaps that verify that the orders can possibly be swapped
7676
* before adding trading pairs as active.

Diff for: sample-xud.conf

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test/integration/Service.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe('API Service', () => {
2626
before(async () => {
2727
const config = {
2828
initdb: false,
29+
noencrypt: true,
2930
nosanityswaps: true,
3031
nobalancechecks: true,
3132
dbpath: ':memory:',

Diff for: test/jest/WebProxy.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('WebProxy', () => {
1313
xudir: getTempDir(true),
1414
dbpath: ':memory:',
1515
initdb: false,
16+
noencrypt: true,
1617
webproxy: {
1718
port,
1819
disable: false,

Diff for: test/p2p/sanity.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const createConfig = (instanceid: number, p2pPort: number, uniqueXudir =
1212
instanceid,
1313
network,
1414
initdb: false,
15+
noencrypt: true,
1516
xudir: getTempDir(uniqueXudir),
1617
dbpath: ':memory:',
1718
loglevel: 'error',

Diff for: test/simulation/xudtest/node.go

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (cfg nodeConfig) genArgs() []string {
6262
args = append(args, "--initdb=false")
6363
args = append(args, "--regtest")
6464
args = append(args, "--loglevel=trace")
65+
args = append(args, "--noencrypt")
6566

6667
if cfg.NoBalanceChecks {
6768
args = append(args, "--nobalancechecks=true")

0 commit comments

Comments
 (0)