mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-22 15:15:49 +00:00
Fix b49 duplicate hash error
This commit is contained in:
parent
0eb4b23031
commit
8284e1cfbc
@ -1039,7 +1039,9 @@ public class FullBlockTestGenerator {
|
|||||||
|
|
||||||
// Block with invalid merkle hash
|
// Block with invalid merkle hash
|
||||||
Block b49 = createNextBlock(b44, chainHeadHeight + 16, out15, null);
|
Block b49 = createNextBlock(b44, chainHeadHeight + 16, out15, null);
|
||||||
b49.setMerkleRoot(Sha256Hash.ZERO_HASH);
|
byte[] b49MerkleHash = Sha256Hash.ZERO_HASH.getBytes().clone();
|
||||||
|
b49MerkleHash[1] = (byte) 0xDE;
|
||||||
|
b49.setMerkleRoot(Sha256Hash.create(b49MerkleHash));
|
||||||
b49.solve();
|
b49.solve();
|
||||||
blocks.add(new BlockAndValidity(blockToHeightMap, hashHeaderMap, b49, false, true, b44.getHash(), chainHeadHeight + 15, "b49"));
|
blocks.add(new BlockAndValidity(blockToHeightMap, hashHeaderMap, b49, false, true, b44.getHash(), chainHeadHeight + 15, "b49"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user