Skip to content

Commit

Permalink
Emit 'transactions' ws event.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed Jul 22, 2018
1 parent c604005 commit e566d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
}
});
Expand Down

0 comments on commit e566d7a

Please sign in to comment.