-
Notifications
You must be signed in to change notification settings - Fork 877
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
add JSON-RPC method to call /storeraw on GoQuorum enclave #1859
Conversation
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…uorum-store-raw
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…uorum-store-raw
…uorum-store-raw
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…essera for storing Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
enclave/src/main/java/org/hyperledger/besu/enclave/types/StoreRawResponse.java
Outdated
Show resolved
Hide resolved
.../api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/PrivJsonRpcMethods.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…group Signed-off-by: Sally MacFarlane <sally.macfarlane@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.
I've added another comment!
Would be nice if we could make sure that the right distribute RPC is used when both, PRIV and GOQUORUM RPCs are enabled!
final String methodName = rpcMethod.getName(); | ||
if (methodName.equals(RpcMethod.ETH_SEND_RAW_PRIVATE_TRANSACTION.getMethodName())) { | ||
return rpcMethod; | ||
} else if (methodName.equals(RpcMethod.PRIV_DISTRIBUTE_RAW_TRANSACTION.getMethodName()) |
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.
can this be removed now?
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.
not quite
…uorum-store-raw
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
to achieve this I have given them different method names |
…r#1859) * added GoQuorumStoreRawPrivateTransaction that can send a payload to Tessera for storing Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…r#1859) * added GoQuorumStoreRawPrivateTransaction that can send a payload to Tessera for storing Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net> Signed-off-by: Richard Hart <richardhart92@gmail.com>
…r#1859) * added GoQuorumStoreRawPrivateTransaction that can send a payload to Tessera for storing Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
PR description
override existing JSON-RPC method: priv_distributeRawTransaction which is a proxy to Tessera's /storeraw - and the factory chooses which implementation to create, depending on whether go-quorum mode is enabled.
/storeraw is required to process GoQuorum private transactions via EthSigner (analogous to priv_distributeRawTransaction for Orion)
Fixed Issue(s)
refs https://github.com/ConsenSys/protocol-misc/issues/256
Changelog
Gives result: