-
Notifications
You must be signed in to change notification settings - Fork 30
Updated how transaction result is represented [ECR-3693] #1174
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
Updated how transaction result is represented [ECR-3693] #1174
Conversation
WIP: - Review and update docs, if needed - Unexpected exception handling — submit Jira? - Migrate to correct ExecutionStatus and remove redundant .proto in core.
...binding/common/src/test/java/com/exonum/binding/common/blockchain/ExecutionStatusesTest.java
Outdated
Show resolved
Hide resolved
return ImmutableList.of( | ||
arguments(0, "Min error code"), | ||
arguments(1, ""), | ||
arguments(Integer.MAX_VALUE, "Max error code") |
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.
Did core remove 255
as maximum error code? Can't find such a restriction in native anymore.
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.
Actually, it is still there, as Service error variant accepts only u8 as a code.
# Conflicts: # exonum-java-binding/common/src/main/java/com/exonum/binding/common/blockchain/TransactionResult.java # exonum-java-binding/common/src/main/proto/runtime.proto # exonum-java-binding/core/src/main/proto/blockchain.proto
Also, update Exonum to 7404bac to match the source of protos
Enabled TestKit tests that depended on transaction results update (#1174).
Overview
Updated how transaction result is represented. This PR uses an alternative format with an enum to represent the error kind, yet to be done in the core (ECR-3717).
Dropped the internal type representing the transaction result. It has both pros and cons:
See: ECR-3693
Definition of Done