From 7fab896ead61bf20f476bf514e86115f8488eb23 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 23 Oct 2014 13:21:25 -0700 Subject: [PATCH] test fromHex. --- example/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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() {