Browse Source

zcashparams verify promisified func

v0.25
pbca26 7 years ago
parent
commit
ad05df9e1c
  1. 1
      main.js
  2. 7
      routes/shepherd/downloadZcparams.js

1
main.js

@ -387,6 +387,7 @@ function createWindow(status) {
mainWindow.appSessionHash = appSessionHash;
mainWindow.assetChainPorts = require('./routes/ports.js');
mainWindow.zcashParamsExist = _zcashParamsExist;
mainWindow.zcashParamsExistPromise = shepherd.zcashParamsExistPromise;
mainWindow.agamaIcon = agamaIcon;
mainWindow.testLocation = shepherd.testLocation;
mainWindow.kmdMainPassiveMode = shepherd.kmdMainPassiveMode;

7
routes/shepherd/downloadZcparams.js

@ -54,6 +54,13 @@ module.exports = (shepherd) => {
return _checkList;
}
shepherd.zcashParamsExistPromise = () => {
return new shepherd.Promise((resolve, reject) => {
const _verify = shepherd.zcashParamsExist();
resolve(_verify);
});
};
/*
* Update bins
* type:

Loading…
Cancel
Save