Skip to content

Commit

Permalink
fixed the EthereumTests build after renaming TxRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstanczak committed May 29, 2019
1 parent 6cf9f8e commit 65bc397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Nethermind/Ethereum.Test.Base/BlockchainTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ private List<string> RunAssertions(BlockchainTest test, Block headBlock, IStorag
differences.Add($"STATE ROOT exp: {testHeader.StateRoot}, actual: {stateProvider.StateRoot}");
}

if (testHeader.TransactionsRoot != headBlock.Header.TransactionsRoot)
if (testHeader.TxRoot != headBlock.Header.TxRoot)
{
differences.Add($"TRANSACTIONS ROOT exp: {testHeader.TransactionsRoot}, actual: {headBlock.Header.TransactionsRoot}");
differences.Add($"TRANSACTIONS ROOT exp: {testHeader.TxRoot}, actual: {headBlock.Header.TxRoot}");
}

if (testHeader.ReceiptsRoot != headBlock.Header.ReceiptsRoot)
Expand Down Expand Up @@ -563,7 +563,7 @@ private static BlockHeader Convert(TestBlockHeaderJson headerJson)
header.Nonce = (ulong) Bytes.FromHexString(headerJson.Nonce).ToUnsignedBigInteger();
header.ReceiptsRoot = new Keccak(headerJson.ReceiptTrie);
header.StateRoot = new Keccak(headerJson.StateRoot);
header.TransactionsRoot = new Keccak(headerJson.TransactionsTrie);
header.TxRoot = new Keccak(headerJson.TransactionsTrie);
return header;
}

Expand Down

0 comments on commit 65bc397

Please sign in to comment.