mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-05 21:56:50 +00:00
[NOD-1273] Order parents in PrepareBlockForTest (#872)
This commit is contained in:
parent
3e4e8d8b6b
commit
1f04f30ea7
@ -317,8 +317,10 @@ func PrepareBlockForTest(dag *BlockDAG, parentHashes []*daghash.Hash, transactio
|
||||
|
||||
timestamp := node.parents.bluest().PastMedianTime(dag)
|
||||
msgBlock.Header = domainmessage.BlockHeader{
|
||||
Version: blockVersion,
|
||||
ParentHashes: parentHashes,
|
||||
Version: blockVersion,
|
||||
|
||||
// We use parents.hashes() and not parentHashes because parents.hashes() is sorted.
|
||||
ParentHashes: parents.hashes(),
|
||||
HashMerkleRoot: hashMerkleTree.Root(),
|
||||
AcceptedIDMerkleRoot: calculatedAccepetedIDMerkleRoot,
|
||||
UTXOCommitment: &calculatedMultisetHash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user