diff --git a/example/index.js b/example/index.js index ef57e371..9225558d 100755 --- a/example/index.js +++ b/example/index.js @@ -113,11 +113,12 @@ bitcoind.on('open', function(status) { }); } - bitcoind.on('parsed', function(packet) { - bitcoind.log(packet); - }); + // test tx: + // return bitcoind.log(bitcoind.tx.fromHex(testTx)); - return; + return bitcoind.on('parsed', function(packet) { + return bitcoind.log(packet); + }); argv['on-block'] = true; setTimeout(function() {