Merge pull request #35 from andrerfneves/feature/testnet-setup

feature: enable testnet for tests
This commit is contained in:
George Lima 2019-01-10 18:51:19 -02:00 committed by GitHub
commit 718e1bce84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'),
};