mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
Correct length of block header when hashing at an offset
This commit is contained in:
committed by
Andreas Schildbach
parent
000564923f
commit
922a013142
@@ -191,7 +191,7 @@ public class Block extends Message {
|
||||
difficultyTarget = readUint32();
|
||||
nonce = readUint32();
|
||||
|
||||
hash = Sha256Hash.wrapReversed(Sha256Hash.hashTwice(payload, offset, cursor));
|
||||
hash = Sha256Hash.wrapReversed(Sha256Hash.hashTwice(payload, offset, cursor - offset));
|
||||
|
||||
headerParsed = true;
|
||||
headerBytesValid = parseRetain;
|
||||
|
Reference in New Issue
Block a user