Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/1788/head
Sally MacFarlane 4 years ago committed by GitHub
parent 70b37c7829
commit a6fd69e39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      besu/src/test/java/org/hyperledger/besu/PrivacyReorgTest.java

@ -97,7 +97,7 @@ public class PrivacyReorgTest {
"0x16979b290f429e06d86a43584c7d8689d4292ade9a602e5c78e2867c6ebd904e"; "0x16979b290f429e06d86a43584c7d8689d4292ade9a602e5c78e2867c6ebd904e";
private static final String BLOCK_WITH_SINGLE_TRANSACTION_RECEIPTS_ROOT = private static final String BLOCK_WITH_SINGLE_TRANSACTION_RECEIPTS_ROOT =
"0xc8267b3f9ed36df3ff8adb51a6d030716f23eeb50270e7fce8d9822ffa7f0461"; "0xc8267b3f9ed36df3ff8adb51a6d030716f23eeb50270e7fce8d9822ffa7f0461";
private static final String STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE = private static final String STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE =
"0x2121b68f1333e93bae8cd717a3ca68c9d7e7003f6b288c36dfc59b0f87be9590"; "0x2121b68f1333e93bae8cd717a3ca68c9d7e7003f6b288c36dfc59b0f87be9590";
private static final Bytes32 PRIVACY_GROUP_BYTES32 = private static final Bytes32 PRIVACY_GROUP_BYTES32 =
Bytes32.fromHexString("0xf250d523ae9164722b06ca25cfa2a7f3c45df96b09e215236f886c876f715bfa"); Bytes32.fromHexString("0xf250d523ae9164722b06ca25cfa2a7f3c45df96b09e215236f886c876f715bfa");
@ -232,7 +232,7 @@ public class PrivacyReorgTest {
// Check that the private state root is not the empty state // Check that the private state root is not the empty state
assertPrivateStateRoot( assertPrivateStateRoot(
privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE); privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE);
// Create parallel fork of length 1 which removes privacy marker transaction // Create parallel fork of length 1 which removes privacy marker transaction
final Block forkBlock = final Block forkBlock =
@ -275,7 +275,7 @@ public class PrivacyReorgTest {
// Check that the private state root is not the empty state // Check that the private state root is not the empty state
assertPrivateStateRoot( assertPrivateStateRoot(
privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE); privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE);
// Create parallel fork of length 1 which removes privacy marker transaction // Create parallel fork of length 1 which removes privacy marker transaction
final Difficulty remainingDifficultyToOutpace = final Difficulty remainingDifficultyToOutpace =
@ -322,7 +322,7 @@ public class PrivacyReorgTest {
// Check that the private state root is not the empty state // Check that the private state root is not the empty state
assertPrivateStateRoot( assertPrivateStateRoot(
privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE); privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE);
// Create parallel fork of length 1 which removes privacy marker transaction // Create parallel fork of length 1 which removes privacy marker transaction
final Block forkBlock = final Block forkBlock =
@ -334,7 +334,7 @@ public class PrivacyReorgTest {
// Check that the private state root did not change // Check that the private state root did not change
assertPrivateStateRoot( assertPrivateStateRoot(
privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE); privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE);
final String secondForkBlockStateRoot = final String secondForkBlockStateRoot =
"0xd35eea814b8b5a0b12e690ab320785f3a33d9685bbf6875637c40a64203915da"; "0xd35eea814b8b5a0b12e690ab320785f3a33d9685bbf6875637c40a64203915da";
@ -368,7 +368,7 @@ public class PrivacyReorgTest {
// Check that the private state did change after reorg // Check that the private state did change after reorg
assertPrivateStateRoot( assertPrivateStateRoot(
privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMTPY_STATE); privateStateRootResolver, blockchain, STATE_ROOT_AFTER_TRANSACTION_APPENDED_TO_EMPTY_STATE);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

Loading…
Cancel
Save