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

Question: private state partially updated #14

Closed
ivica7 opened this issue May 19, 2017 · 1 comment
Closed

Question: private state partially updated #14

ivica7 opened this issue May 19, 2017 · 1 comment
Labels

Comments

@ivica7
Copy link

ivica7 commented May 19, 2017

Hello Quorum experts.

I'm just wondering if it is possible to construct the following situation in Quorum (based on SimpleStorage privacy example):

Step 1:
from:N1 privateFor:N2,N3 - instantiate new contract
N2, N3 can call get on the contract and will see the same number: 42

Step 2:
from:N1 privateFor:N2 - set(73)
I assume N2 calling get will see 73
But what about N3? Will his get still return 42?

Regards,
Ivica

@patrickmn
Copy link
Contributor

Hi Ivica,

Yes, that is correct. Currently, you have to track the parties yourself, and, in most cases, you'll want to keep that recipient list constant.

In the future, we plan to build in tracking of participating parties, as well as asserting that state matches between them. There are some cases where you might want the state to deviate, but the default will likely be to check that the state root for a contract is identical on all participating nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants