If skipMagic is enabled do not set the magic or size on the block, the values would have been incorrect.

This commit is contained in:
Braydon Fuller 2015-01-16 16:41:44 -05:00
parent 38b8c211f3
commit 116ddac345

View File

@ -114,10 +114,6 @@ Block._fromBufferReader = function _fromBufferReader(br, options) {
info.size = br.readUInt32LE();
}
info.header = BlockHeader.fromBufferReader(br);
if (options.skipMagic) {
info.magicnum = 0;
info.size = info.header.bits;
}
var transactions = br.readVarintNum();
info.transactions = [];
for (var i = 0; i < transactions; i++) {