Skip to content
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

eth_getCode: add support for GoQuorum private tx #2380

Merged
merged 7 commits into from
Jun 8, 2021

Conversation

macfarla
Copy link
Contributor

@macfarla macfarla commented Jun 7, 2021

Attempt to retrieve from GoQuorum private state first, otherwise get from public state as before.

I have tested this by:
Node1 deploys a contract, private for Node4. Nodes 1 and 4 can get the code; Nodes 2 and 3 do not. getCode for public tx works as before (all nodes get the right value). Attempting to getCode for non-existent address gives 0x.

Changelog

macfarla added 2 commits June 7, 2021 11:55
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
@macfarla macfarla requested a review from mark-terry June 7, 2021 01:58
Copy link
Contributor

@mark-terry mark-terry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@macfarla macfarla merged commit 33a9541 into hyperledger:master Jun 8, 2021
@macfarla macfarla deleted the get-code-gq branch June 8, 2021 22:55
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* eth_getCode try to get from private state first

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* add container test for eth_getCode

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants