update blockreader example to use toJSON
This commit is contained in:
parent
e11019a083
commit
04887db261
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue