|
|
@ -37,15 +37,15 @@ public class GoQuorumPrivateStateUtil { |
|
|
|
goQuorumPrivacyParameters.orElseThrow().privateStorage(); |
|
|
|
goQuorumPrivacyParameters.orElseThrow().privateStorage(); |
|
|
|
final WorldStateArchive goQuorumWorldStateArchive = |
|
|
|
final WorldStateArchive goQuorumWorldStateArchive = |
|
|
|
goQuorumPrivacyParameters.orElseThrow().worldStateArchive(); |
|
|
|
goQuorumPrivacyParameters.orElseThrow().worldStateArchive(); |
|
|
|
return getPrivateWorldState(goQuorumPrivateStorage, goQuorumWorldStateArchive, header); |
|
|
|
return getPrivateWorldState( |
|
|
|
|
|
|
|
goQuorumPrivateStorage, goQuorumWorldStateArchive, header.getStateRoot(), header.getHash()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static MutableWorldState getPrivateWorldState( |
|
|
|
public static MutableWorldState getPrivateWorldState( |
|
|
|
final GoQuorumPrivateStorage goQuorumPrivateStorage, |
|
|
|
final GoQuorumPrivateStorage goQuorumPrivateStorage, |
|
|
|
final WorldStateArchive goQuorumWorldStateArchive, |
|
|
|
final WorldStateArchive goQuorumWorldStateArchive, |
|
|
|
final BlockHeader header) { |
|
|
|
final Hash worldStateRootHash, |
|
|
|
final Hash worldStateRootHash = header.getStateRoot(); |
|
|
|
final Hash publicBlockHash) { |
|
|
|
final Hash publicBlockHash = header.getHash(); |
|
|
|
|
|
|
|
final Hash privateStateRootHash = |
|
|
|
final Hash privateStateRootHash = |
|
|
|
goQuorumPrivateStorage |
|
|
|
goQuorumPrivateStorage |
|
|
|
.getPrivateStateRootHash(worldStateRootHash) |
|
|
|
.getPrivateStateRootHash(worldStateRootHash) |
|
|
|