Browse Source

watchonly addr mode flag

custom-ac-example
pbca26 7 years ago
parent
commit
109b614015
  1. 1
      main.js
  2. 1
      routes/shepherd.js
  3. 4
      routes/shepherd/auth.js

1
main.js

@ -293,6 +293,7 @@ function createWindow(status, hideLoadingWindow) {
mainWindow.checkStringEntropy = shepherd.checkStringEntropy;
mainWindow.pinAccess = false;
mainWindow.bip39 = bip39;
mainWindow.isWatchOnly = shepherd.isWatchOnly;
for (let i = 0; i < process.argv.length; i++) {
if (process.argv[i].indexOf('nvote') > -1) {

1
routes/shepherd.js

@ -37,6 +37,7 @@ shepherd.rpcConf = {};
shepherd.appRuntimeLog = [];
shepherd.appRuntimeSPVLog = [];
shepherd.lockDownAddCoin = false;
shepherd.isWatchOnly = false;
// dex cache
shepherd.mmupass = null;

4
routes/shepherd/auth.js

@ -59,5 +59,9 @@ module.exports = (shepherd) => {
return passwdStrength(str) < 29 ? false : true;
};
shepherd.isWatchOnly = () => {
return shepherd.isWatchOnly;
};
return shepherd;
};
Loading…
Cancel
Save