Manindra
Manindra

Reputation: 190

Is change in state visible to a party not involved in the transaction in case the party has access to that state from previous transactions?

Let's say Party-A initiates a transaction sharing state:State-1 with parties Party-B and Party-C. If Party A initiates another transaction only with Party B and modifies that state:State-1 then is that change in state visible to other party - Party C?

Upvotes: 1

Views: 94

Answers (2)

Adrian
Adrian

Reputation: 444

When Party A modifies the state with Party B

If

  • Party C is no longer a participant / extraReceipient of the transaction.
  • The contract doesn't require the previous participant (Party C) to sign for the new outputs of the transaction.

Then Party C

  • Will only record the transaction that removed C as a participant to mark the state as consumed.
  • Will record the consumed states but not the unconsumed states See here on consumed/produced states
  • Will not record new unconsumed state if any more changes are made thereafter.

Upvotes: 2

Sagaranand
Sagaranand

Reputation: 143

The State object is linked with list of Participant nodes. Whenever the state transition happens, it gets updated to all the nodes, defined in this participant list.

  1. For the first transaction, the state gets saved to all the three nodes - Party A, B & C.
  2. For the second transaction, the state change will be updated to all the three nodes - Party A, B & C.

The signatories of the transaction can be different than the nodes where the state is being saved or modified.

Upvotes: 2

Related Questions