From d57613bc911216956c78393a088da17db928f7a0 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Fri, 19 Sep 2014 17:41:22 -0700 Subject: [PATCH] body is actually defined in the function --- examples/blockreader.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/blockreader.js b/examples/blockreader.js index 4c3db6c24..b4cf61eb4 100644 --- a/examples/blockreader.js +++ b/examples/blockreader.js @@ -7,7 +7,6 @@ var BufferWriter = require('../lib/bufferwriter'); //cat blk00000.dat | node blockreader.js var head = null; -var body = null; process.stdin.on('readable', function() { if (!head) { @@ -22,6 +21,5 @@ process.stdin.on('readable', function() { var block = Block().fromBuffer(blockbuf); console.log(block.toJSON()); head = null; - body = null; process.stdin.unshift(process.stdin.read()); });