mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Rearchitected state sync with hpfs. (#96)
This commit is contained in:
@@ -22,17 +22,17 @@ Object.keys(hpargs.usrfd).forEach(function (key, index) {
|
||||
}
|
||||
});
|
||||
|
||||
let nplinput = fs.readFileSync(hpargs.nplfd[0], 'utf8');
|
||||
if (nplinput.length > 0) {
|
||||
console.log("Input received from hp:");
|
||||
if (hpargs.nplfd[0] != -1) {
|
||||
let nplinput = fs.readFileSync(hpargs.nplfd[0], 'utf8');
|
||||
console.log("Input received from peers:");
|
||||
console.log(nplinput);
|
||||
fs.writeSync(hpargs.nplfd[1], "Echoing: " + nplinput);
|
||||
}
|
||||
|
||||
let hpinput = fs.readFileSync(hpargs.hpfd[0], 'utf8');
|
||||
if (hpinput.length > 0) {
|
||||
//console.log("Input received from hp:");
|
||||
//console.log(hpinput);
|
||||
if (hpargs.hpfd[0] != -1) {
|
||||
let hpinput = fs.readFileSync(hpargs.hpfd[0], 'utf8');
|
||||
console.log("Input received from hp:");
|
||||
console.log(hpinput);
|
||||
fs.writeSync(hpargs.hpfd[1], "Echoing: " + hpinput);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user