Skip to content

Commit

Permalink
Merge conflict resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Jul 6, 2021
1 parent cd3aea0 commit 85cd2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libplanet/Blocks/Block.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ public Block(
{
_preEvaluationHash = preEvaluationBlockHash;
StateRootHash = stateRootHash;
_hash = Hashcash.Hash(Header.SerializeForHash());
_hash = new BlockHash(Header.Hash);
}
else
{
// FIXME: This only works due to sanity constraint on usage.
_preEvaluationHash = Hashcash.Hash(Header.SerializeForPreEvaluationHash());
_preEvaluationHash = new BlockHash(Header.PreEvaluationHash);
StateRootHash = stateRootHash;
_hash = _preEvaluationHash;
_hash = new BlockHash(Header.Hash);
}

// As the order of transactions should be unpredictable until a block is mined,
Expand Down

0 comments on commit 85cd2e4

Please sign in to comment.