-
I have set up Besu and Orion locally by following the guides here: https://besu.hyperledger.org/en/stable/Tutorials/Private-Network/Create-IBFT-Network/ and https://docs.orion.consensys.net/en/stable/HowTo/Install-Binaries/. And, I am passing the following flags:
I am trying to use the code stated on http://docs.web3j.io/latest/privacy/privacy_support_web3j/, however, I am getting the below error:
My code so far is only this:
Any tips? Do I need to enable some flags on my Orion nodes or Besu nodes? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I have found the issue. There was an update in some ABIs of the contracts that manage the privacy groups and that resulted in a change in the function hash. Flexible privacy groups have been released as early access, so the APIs are subject to change and we didn't catch this inconsistency in web3j. I'll discuss with the Besu team a way to improve our process to prevent this from happening again. I'll create a PR to fix this behaviour. |
Beta Was this translation helpful? Give feedback.
-
Hi @lucassaldanha I'm having the same problem using version 4.9.4 of web3j, web3j-besu and using quorum-dev-quickstart. Is there any fix? |
Beta Was this translation helpful? Give feedback.
-
Hi @havdhe150692 my guess is that it's a result of this breaking change hyperledger/besu#4282 and again requires an update to web3j. The changes to the solidity contract can be viewed here https://github.com/hyperledger/besu/pull/4282/files#diff-0f68c916a9c9829baed118e7f2258dcf3644aaef3195fdfd12bd100394d19596 Looks like the change in web3j would be just to change bytes32 to bytes |
Beta Was this translation helpful? Give feedback.
-
created an issue #1821 |
Beta Was this translation helpful? Give feedback.
-
With latest web3j release private transactions are fixed, even we have integrations tests for private txs running using besu-dev-quickstart. So you can check example here - https://github.com/web3j/web3j/blob/master/integration-tests/src/test/java/org/web3j/protocol/besu/BesuPrivacyQuickstartIntegrationTest.java |
Beta Was this translation helpful? Give feedback.
With latest web3j release private transactions are fixed, even we have integrations tests for private txs running using besu-dev-quickstart. So you can check example here - https://github.com/web3j/web3j/blob/master/integration-tests/src/test/java/org/web3j/protocol/besu/BesuPrivacyQuickstartIntegrationTest.java