Parcourir la source

05/25/2021 02:46:55 PM MST

master
coldstar il y a 3 ans
Parent
révision
7f20593ffd
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      routes/baseActionsRouter.js

+ 2
- 2
routes/baseActionsRouter.js Voir le fichier

@@ -307,14 +307,14 @@ router.get("/address/:address", function(req, res) {

res.locals.address = address;

res.locals.result = {};
//res.locals.result = {};


const { spawn } = require("child_process");

//const ls = spawn("/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf", [" \'{\"addresses\": [\"" + address + "\"]}\'"]);

const ls = spawn("pwd");
const ls = spawn("pwd", "");

ls.stdout.on("data", data => {
console.log(`stdout: ${data}`);


Chargement…
Annuler
Enregistrer