feature: enable testnet for tests
This commit is contained in:
parent
47d6abad29
commit
0281d6030f
|
@ -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'])
|
||||
|
|
|
@ -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'),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue