From e566d7a63f24d7dd2b9b2dd2e1850afa5a63ac48 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sun, 22 Jul 2018 13:10:50 +0900 Subject: [PATCH] Emit 'transactions' ws event. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index e969d10a..4c084e3d 100644 --- a/app.js +++ b/app.js @@ -144,7 +144,7 @@ io.on('connection', (socket) => { if(decoded === 'rawtx') { let network = {'pubKeyHash': 0x00, 'scriptHash': 0x05}; let txd = new TxDecoder(message, network); - io.emit('rawtx', JSON.stringify(txd.toObject(), null, 2)); + io.emit('transactions', JSON.stringify(txd.toObject(), null, 2)); } else if(decoded === 'rawblock') { } });