This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 297
Conversation
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
* Introduced error codes to SQL Signed-off-by: Akvinikym <anarant12@gmail.com> * Builds Signed-off-by: Akvinikym <anarant12@gmail.com> * 4/16 commands Signed-off-by: Akvinikym <anarant12@gmail.com> * 13/16 done Signed-off-by: Akvinikym <anarant12@gmail.com> * Tests are finished Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Added a separated function for parsing SQL errors and making an error Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues are addressed Signed-off-by: Akvinikym <anarant12@gmail.com> * Added ToDos Signed-off-by: Akvinikym <anarant12@gmail.com> * Some after-POW issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Error codes has good ordering Signed-off-by: Akvinikym <anarant12@gmail.com> * More fixes Signed-off-by: Akvinikym <anarant12@gmail.com> * Build fix Signed-off-by: Akvinikym <anarant12@gmail.com> * And more Signed-off-by: Akvinikym <anarant12@gmail.com> * Refactored switch-case Signed-off-by: Akvinikym <anarant12@gmail.com>
* Introduced error codes to SQL Signed-off-by: Akvinikym <anarant12@gmail.com> * Builds Signed-off-by: Akvinikym <anarant12@gmail.com> * 4/16 commands Signed-off-by: Akvinikym <anarant12@gmail.com> * 13/16 done Signed-off-by: Akvinikym <anarant12@gmail.com> * Tests are finished Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Introduced error codes to SFV Signed-off-by: Akvinikym <anarant12@gmail.com> * Is now built Signed-off-by: Akvinikym <anarant12@gmail.com> * Added a separated function for parsing SQL errors and making an error Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues are addressed Signed-off-by: Akvinikym <anarant12@gmail.com> * Added ToDos Signed-off-by: Akvinikym <anarant12@gmail.com> * Some after-POW issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Error codes has good ordering Signed-off-by: Akvinikym <anarant12@gmail.com> * More fixes Signed-off-by: Akvinikym <anarant12@gmail.com> * Build fix Signed-off-by: Akvinikym <anarant12@gmail.com> * And more Signed-off-by: Akvinikym <anarant12@gmail.com> * Refactored switch-case Signed-off-by: Akvinikym <anarant12@gmail.com>
* Introduced error codes to SQL Signed-off-by: Akvinikym <anarant12@gmail.com> * Builds Signed-off-by: Akvinikym <anarant12@gmail.com> * 4/16 commands Signed-off-by: Akvinikym <anarant12@gmail.com> * 13/16 done Signed-off-by: Akvinikym <anarant12@gmail.com> * Tests are finished Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Introduced error codes to SFV Signed-off-by: Akvinikym <anarant12@gmail.com> * Is now built Signed-off-by: Akvinikym <anarant12@gmail.com> * Error code is introduced, and tests are up Signed-off-by: Akvinikym <anarant12@gmail.com> * Added a separated function for parsing SQL errors and making an error Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues are addressed Signed-off-by: Akvinikym <anarant12@gmail.com> * Added ToDos Signed-off-by: Akvinikym <anarant12@gmail.com> * Some after-POW issues Signed-off-by: Akvinikym <anarant12@gmail.com> * Error codes has good ordering Signed-off-by: Akvinikym <anarant12@gmail.com> * More fixes Signed-off-by: Akvinikym <anarant12@gmail.com> * Build fix Signed-off-by: Akvinikym <anarant12@gmail.com> * And more Signed-off-by: Akvinikym <anarant12@gmail.com> * Refactored switch-case Signed-off-by: Akvinikym <anarant12@gmail.com> * Review issues are fixed Signed-off-by: Akvinikym <anarant12@gmail.com> * Little issue Signed-off-by: Akvinikym <anarant12@gmail.com> * Another issue Signed-off-by: Akvinikym <anarant12@gmail.com>
muratovv
approved these changes
Nov 13, 2018
nickaleks
approved these changes
Nov 14, 2018
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.
Please fix minor issues
}; | ||
case TxStatusType::kEnoughSignaturesCollected: { | ||
builder = builder.enoughSignaturesCollected(); | ||
break; | ||
status_bus_->publish(status_factory_->makeEnoughSignaturesCollected(hash, tx_error)); |
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.
Formatting?
Signed-off-by: Akvinikym <anarant12@gmail.com>
Signed-off-by: Akvinikym <anarant12@gmail.com>
Signed-off-by: Akvinikym <anarant12@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR trunk introduces error codes for stateful response. Numeric values, described in the following POW, are returned the to the client instead of long and insecure error messages.
Benefits
More security and easier to parse by the client.
Possible Drawbacks
Less information about the error, which happened during validation.