update blockreader example to use toJSON

This commit is contained in:
Ryan X. Charles 2014-09-18 17:52:43 -07:00
parent e11019a083
commit 04887db261
1 changed files with 1 additions and 1 deletions

View File

@ -16,5 +16,5 @@ process.stdin.on('end', function(buf) {
var blocksbuf = bw.concat();
var br = new BufferReader(blocksbuf);
while (!br.eof())
console.log(Block().fromBufferReader(br));
console.log(JSON.stringify(Block().fromBufferReader(br).toJSON(), null, 2));
});