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 blocksbuf = bw.concat();
|
||||||
var br = new BufferReader(blocksbuf);
|
var br = new BufferReader(blocksbuf);
|
||||||
while (!br.eof())
|
while (!br.eof())
|
||||||
console.log(Block().fromBufferReader(br));
|
console.log(JSON.stringify(Block().fromBufferReader(br).toJSON(), null, 2));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user