feature: enable testnet for tests

This commit is contained in:
George Lima 2019-01-10 17:49:32 -03:00
parent 47d6abad29
commit 0281d6030f
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,9 @@ const getDaemonOptions = ({ username, password }) => {
'-metricsrefreshtime=1',
`-rpcuser=${username}`,
`-rpcpassword=${password}`,
// TODO: For test purposes only
'-testnet',
'-addnode=testnet.z.cash',
];
return isDev
? defaultOptions.concat(['-testnet', '-addnode=testnet.z.cash'])

View File

@ -8,7 +8,8 @@ import store from '../config/electron-store';
const RPC = {
host: '127.0.0.1',
port: isDev ? 18232 : 8232,
// port: isDev ? 18232 : 8232,
port: 18232, // TODO: Test purposes only
user: store.get('rpcuser'),
password: store.get('rpcpassword'),
};