-
Notifications
You must be signed in to change notification settings - Fork 871
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
Error: Transaction hash is "NULL" while executing Privacy enabled On-chain permission (Client Lib Web3j) #3504
Comments
Tested with downgraded version of web3j (4.8.7 ), okHTTP (4.3.1) . Its giving same error... |
Invalid params indicates that there is an unrecognized parameter or a parameter with an unexpected type or value. Are you able to log exactly what request is being sent to besu on your side? |
@macfarla How I can enable the info log to see submitted request on Besu node? |
If you enable DEBUG logging, https://besu.hyperledger.org/en/stable/Reference/CLI/CLI-Syntax/#logging
|
2022-03-29 15:15:53.270+00:00 | vert.x-eventloop-thread-0 | DEBUG | B3PropagatorExtractorMultipleHeaders | Invalid TraceId in B3 header: null'. Returning INVALID span context. |
Private Transaction failed signature validation WRONG_CHAIN_ID, Transaction was meant for chain id 2018, not this chain id 1337 Not very sure where from CHAIN_ID 2018 is getting set. In Genesis, .env file, dAPP I am setting chain_id as 1337 . I am using ethash . Genesis file is https://github.com/ConsenSys/permissioning-smart-contracts/blob/main/genesis.json Please suggest. |
After investigation I found that below code is setting hardcoded chain_id as 2018 in OnChainPrivacyTransactionBuilder.java which is getting call from JsonRpc2_OBesu.java. Any suggestion is appreciated. public OnChainPrivacyTransactionBuilder() { |
Able to Fix chain_Id issue, however getting issue on " Invalid TraceId in B3 header: null'. Returning INVALID span context." .. Invalid Param.... Below is the log. 2022-03-29 17:36:11.705+00:00 | vert.x-worker-thread-2 | DEBUG | JsonRpcHttpService | JSON-RPC request -> eea_sendRawTransaction |
These DEBUG logs can be ignored: " Invalid TraceId in B3 header: null'. Returning INVALID span context." This message "Invalid transaction: transaction nonce 19 does not match sender account nonce 0." means that your public transaction nonce is out of sync. This is explained by the failed transactions you've already attempted. If you restart your besu node, the nonce should reset to 0 (pending transactions will be removed). Then you can try sending your transactions again. |
I have re-tested. However , transaction hash is still returning NULL (as described in main issue ). What should I test now? |
@jann2005 can you share latest logs so we can see what's happening? |
Any update on this one @jann2005? |
Description
I wanted to create a network with Privacy enabled On chain permission to execute a transaction with
Steps to re-produce -
a. I have created 3 Besu nodes with privacy enabled.
b. Each node is running a tressera node inside.
c. --privacy-flexible-groups-enabled="true"
d. Using Ethash consensus. (I have tested with CLIQE and IBFT. Its same)
e. Created Privacy group with 2 participants by generating 32 bit random unique Id
f . Call to create privOnChainCreatePrivacyGroup
Getting Error : Returning Transaction hash null
2022-03-01 14:46:01.800 ERROR 52874 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received: 400; {
"jsonrpc" : "2.0",
"id" : 3,
"error" : {
"code" : -32602,
"message" : "Invalid params"
}
}]
Code Snippet -
Stacktrace
Creating privacy group with Member 1 and member 2
enclaveKey=qUWO+tx43cQGfZIH8aKDxVWq1Ks/l3dJyvMsaSmrU38=, privateKey=0xdf02ce17a501f4028dd5a7eaab3ce81cac23b480 Participant List => [qUWO+tx43cQGfZIH8aKDxVWq1Ks/l3dJyvMsaSmrU38=, Zc2aEGkBktD5+OIIe7dmibBsM/Pqm0rTf5WUp+2CyGg=] Privacy groupId => 0oUnzE0j+iJlvFuHRw4eUE0drGfzm3spY8R3fLJzUBg=
2022-03-01 14:46:01.800 ERROR 52874 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received: 400; {
"jsonrpc" : "2.0",
"id" : 3,
"error" : {
"code" : -32602,
"message" : "Invalid params"
}
}] with root cause
org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received: 400; {
"jsonrpc" : "2.0",
"id" : 3,
"error" : {
"code" : -32602,
"message" : "Invalid params"
}
}
at org.web3j.protocol.http.HttpService.performIO(HttpService.java:173) ~[core-5.0.0.jar:na]
at org.web3j.protocol.Service.send(Service.java:48) ~[core-5.0.0.jar:na]
at org.web3j.protocol.core.Request.send(Request.java:87) ~[core-5.0.0.jar:na]
at org.web3j.tx.response.PrivateTransactionReceiptProcessor.sendTransactionReceiptRequest(PrivateTransactionReceiptProcessor.java:35) ~[besu-5.0.0.jar:na]
at org.web3j.tx.response.PollingPrivateTransactionReceiptProcessor.getTransactionReceipt(PollingPrivateTransactionReceiptProcessor.java:44) ~[besu-5.0.0.jar:na]
at org.web3j.tx.response.PollingPrivateTransactionReceiptProcessor.waitForTransactionReceipt(PollingPrivateTransactionReceiptProcessor.java:36) ~[besu-5.0.0.jar:na]
at com.dapp.dappsample.BesuNetwork.getNewNetwork(BesuNetwork.java:57) ~[classes/:na]
.....
Versions
Besu Version - 22.1.0
web3j Lib - 5.0.0
Jopen JDK 11
okHTTP 4.9.3
The text was updated successfully, but these errors were encountered: