|
@ -35,8 +35,8 @@ Blockheader.prototype.fromBuffer = function(buf) { |
|
|
|
|
|
|
|
|
Blockheader.prototype.fromBufferReader = function(br) { |
|
|
Blockheader.prototype.fromBufferReader = function(br) { |
|
|
this.version = br.readUInt32LE(); |
|
|
this.version = br.readUInt32LE(); |
|
|
this.prevblockidbuf = br.buffer(32); |
|
|
this.prevblockidbuf = br.read(32); |
|
|
this.merklerootbuf = br.buffer(32); |
|
|
this.merklerootbuf = br.read(32); |
|
|
this.time = br.readUInt32LE(); |
|
|
this.time = br.readUInt32LE(); |
|
|
this.bits = br.readUInt32LE(); |
|
|
this.bits = br.readUInt32LE(); |
|
|
this.nonce = br.readUInt32LE(); |
|
|
this.nonce = br.readUInt32LE(); |
|
|