|
|
@ -7,6 +7,7 @@ import { |
|
|
|
activeHandle, |
|
|
|
triggerToaster, |
|
|
|
shepherdElectrumCoins, |
|
|
|
toggleZcparamsFetchModal, |
|
|
|
} from '../../actions/actionCreators'; |
|
|
|
|
|
|
|
class Main extends React.Component { |
|
|
@ -32,6 +33,8 @@ class Main extends React.Component { |
|
|
|
document.title = `${appVersion.name} (v${appVersion.version.replace('version=', '')}-beta)`; |
|
|
|
} |
|
|
|
|
|
|
|
console.warn(zcashParamsExist); |
|
|
|
// TODO: isolate check only when komodod is detected
|
|
|
|
if (zcashParamsExist.errors) { |
|
|
|
let _errors = [translate('KMD_NATIVE.ZCASH_PARAMS_MISSING'), '']; |
|
|
|
|
|
|
@ -41,13 +44,15 @@ class Main extends React.Component { |
|
|
|
if (!zcashParamsExist.provingKey) { |
|
|
|
_errors.push(translate('KMD_NATIVE.ZCASH_PARAMS_MISSING_PROVING_KEY')); |
|
|
|
} |
|
|
|
if (!zcashParamsExist.provingKey) { |
|
|
|
if (!zcashParamsExist.verifyingKey) { |
|
|
|
_errors.push(translate('KMD_NATIVE.ZCASH_PARAMS_MISSING_VERIFYING_KEY')); |
|
|
|
} |
|
|
|
if (!zcashParamsExist.provingKeySize) { |
|
|
|
if (!zcashParamsExist.provingKeySize && |
|
|
|
zcashParamsExist.provingKey) { |
|
|
|
_errors.push(translate('KMD_NATIVE.ZCASH_PARAMS_MISSING_PROVING_KEY_SIZE')); |
|
|
|
} |
|
|
|
if (!zcashParamsExist.verifyingKeySize) { |
|
|
|
if (!zcashParamsExist.verifyingKeySize && |
|
|
|
zcashParamsExist.verifyingKey) { |
|
|
|
_errors.push(translate('KMD_NATIVE.ZCASH_PARAMS_MISSING_VERIFYING_KEY_SIZE')); |
|
|
|
} |
|
|
|
|
|
|
@ -59,6 +64,7 @@ class Main extends React.Component { |
|
|
|
false |
|
|
|
) |
|
|
|
); |
|
|
|
Store.dispatch(toggleZcparamsFetchModal(true)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|