-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abort if agent doesn't hold tickets on update keys
Addresses a bug identified which allows for a smart contract to return an update map containing keys that the agent has not acquired tickets for. This fix ensures that when smart contract execution completes, all updates will be committed or none of them will. Previously, committed changes which the agent held write locks for would be committed, but changes which never had ticket requests made would silently fail. Note: if a key has a ticket but is waiting on a lock, the transaction rolls back and retries. If a ticket has not been acquired, the transaction should fail as the contract specifically needs to request locks on important keys. Signed-off-by: Michael Maurer <[email protected]>
- Loading branch information
1 parent
20b1edd
commit 3e2a3ef
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters