-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Priv call #250
Priv call #250
Conversation
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is on the right track! I've added some comments and suggestions.
...um/core/src/main/java/org/hyperledger/besu/ethereum/privacy/PrivateTransactionSimulator.java
Outdated
Show resolved
Hide resolved
...um/core/src/main/java/org/hyperledger/besu/ethereum/privacy/PrivateTransactionSimulator.java
Outdated
Show resolved
Hide resolved
...sts/tests/src/test/java/org/hyperledger/besu/tests/web3j/privacy/PrivCallAcceptanceTest.java
Outdated
Show resolved
Hide resolved
...sts/tests/src/test/java/org/hyperledger/besu/tests/web3j/privacy/PrivCallAcceptanceTest.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/ProtocolSpecBuilder.java
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/PrivCall.java
Outdated
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/PrivCall.java
Show resolved
Hide resolved
@pinges we need to remove the updated |
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
...va/org/hyperledger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/PrivCallTest.java
Show resolved
Hide resolved
...um/core/src/main/java/org/hyperledger/besu/ethereum/privacy/PrivateTransactionSimulator.java
Outdated
Show resolved
Hide resolved
...um/core/src/main/java/org/hyperledger/besu/ethereum/privacy/PrivateTransactionSimulator.java
Show resolved
Hide resolved
...um/core/src/main/java/org/hyperledger/besu/ethereum/privacy/PrivateTransactionSimulator.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
public void privCallWithNonExistingPrivacyGroupMustNotSucceed() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
privCallWithoutExistingPrivacyGroupMustException
or
noExistingPrivacyGroupMustException
(as the class has the prefix PrivCall
, also having as a method prefix seems redundant).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the test method names
@@ -27,7 +27,7 @@ | |||
|
|||
public abstract class AbstractBlockParameterMethod implements JsonRpcMethod { | |||
|
|||
private final Supplier<BlockchainQueries> blockchainQueries; | |||
protected final Supplier<BlockchainQueries> blockchainQueries; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why widen the scope (encapsulation) instead of using the getter (getBlockchainQueries
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a short while we need access to this. When we add the mainnet functionality this can be set back to private. I have added a TODO for making this private again.
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net> Signed-off-by: edwardmack <ed@edwardmack.com>
PR description
Fixed Issue(s)