Merge pull request #35 from andrerfneves/feature/testnet-setup
feature: enable testnet for tests
This commit is contained in:
commit
718e1bce84
|
@ -34,6 +34,9 @@ const getDaemonOptions = ({ username, password }) => {
|
||||||
'-metricsrefreshtime=1',
|
'-metricsrefreshtime=1',
|
||||||
`-rpcuser=${username}`,
|
`-rpcuser=${username}`,
|
||||||
`-rpcpassword=${password}`,
|
`-rpcpassword=${password}`,
|
||||||
|
// TODO: For test purposes only
|
||||||
|
'-testnet',
|
||||||
|
'-addnode=testnet.z.cash',
|
||||||
];
|
];
|
||||||
return isDev
|
return isDev
|
||||||
? defaultOptions.concat(['-testnet', '-addnode=testnet.z.cash'])
|
? defaultOptions.concat(['-testnet', '-addnode=testnet.z.cash'])
|
||||||
|
|
|
@ -8,7 +8,8 @@ import store from '../config/electron-store';
|
||||||
|
|
||||||
const RPC = {
|
const RPC = {
|
||||||
host: '127.0.0.1',
|
host: '127.0.0.1',
|
||||||
port: isDev ? 18232 : 8232,
|
// port: isDev ? 18232 : 8232,
|
||||||
|
port: 18232, // TODO: Test purposes only
|
||||||
user: store.get('rpcuser'),
|
user: store.get('rpcuser'),
|
||||||
password: store.get('rpcpassword'),
|
password: store.get('rpcpassword'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue