Fix transaction logger

This commit is contained in:
Anthony Laibe 2018-08-14 14:20:31 +01:00 committed by Iuri Matias
parent eb874f32ac
commit 926ed7c258
1 changed files with 102 additions and 100 deletions

View File

@ -54,8 +54,8 @@ const parseResponse = function(ipc, resBody){
}
delete transactions[commList[receipts[jsonO.id]].transactionHash];
delete commList[receipts[jsonO.id]];
delete receipts[jsonO.id];
delete commList[jsonO.id];
}
};
@ -85,7 +85,9 @@ exports.serve = function(ipc, host, port, ws){
let server = http.createServer((req, res) => {
let reqBody = [];
req.on('data', (b) => { reqBody.push(b); })
req.on('data', (b) => {
reqBody.push(b);
})
.on('end', () => {
reqBody = Buffer.concat(reqBody).toString();
if (reqBody) {