-
Notifications
You must be signed in to change notification settings - Fork 8
Command Family #6
base: main
Are you sure you want to change the base?
Command Family #6
Conversation
The Command Family is a transaction family that can exercise all of the operations provided on the TransactionContext in addition to other actions, such as sleeping or marking the transaction as invalid. This family will be used for creating a wide variety of tests, both for correctness and performance of the Transact library. Signed-off-by: Peter Schwarz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions
Each entry in the `state_keys` field must be a valid state key (for example, a | ||
valid address in a Sawtooth merkle trie). | ||
|
||
Note, no validation will occur if the requested state value is actually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this only to ensure get_state_entries() is working as expected without any panics?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing values do not imply an invalid transaction, though. That's a business logic decision.
`TransactionContext`'s `delete_state_entries` method. In other words, it will | ||
only make a single call to the context. | ||
|
||
Each entry in the `state_keys` field must be a valid state key (for example, a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about valid but non-existing key case, so that negative scenario is tested against the Transact read? Or is that scenario left to "force invalid transaction" case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valid, but non-existing keys is not a invalid transaction.
|
||
The `receipt_data` field must not be empty. | ||
|
||
### Sleep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I failed to get understanding of why this feature is required or how is this used. Could you please add an example case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value here is for testing timing aspects of the overall system - namely parallel scheduling.
The Command Family is a transaction family that can exercise all of the operations provided on the TransactionContext in addition to other actions, such as sleeping or marking the transaction as invalid. This family will be used for creating a wide variety of tests, both for correctness and performance of the Transact library.