Procházet zdrojové kódy

05/25/2021 02:58:07 PM MST

master
coldstar před 3 roky
rodič
revize
e6d70f431f
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      routes/baseActionsRouter.js

+ 4
- 1
routes/baseActionsRouter.js Zobrazit soubor

@@ -303,15 +303,18 @@ router.get("/block/:blockHash", function(req, res) {


router.get("/address/:address", function(req, res) {


var address = req.params.address;

res.locals.address = address;

console.log("address is:" + address);
//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("/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf \'{\"addresses\": [\"" + address + "\"]}\'"]);

//const ls = spawn("ls", "-lah");



Načítá se…
Zrušit
Uložit