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:
parent
38b8c211f3
commit
116ddac345
@ -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++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user