Skip to content
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

EN-6798/tx-integrity-checks #1970

Merged
merged 5 commits into from Jun 17, 2020
Merged

Conversation

sasurobert
Copy link
Contributor

verification of txValue and length of usernames

@@ -171,6 +171,12 @@ func (inTx *InterceptedTransaction) integrity() error {
if inTx.tx.Value.Sign() < 0 {
return process.ErrNegativeValue
}
if len(inTx.tx.RcvUserName) > 0 && len(inTx.tx.RcvUserName) != inTx.hasher.Size() {
return process.ErrInvalidUserNameLength
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could have wrapped the errors to know which field was bad

@bogdan-rosianu bogdan-rosianu self-requested a review June 17, 2020 10:15
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System tests passed.

@LucianMincu LucianMincu merged commit c65203c into development Jun 17, 2020
@LucianMincu LucianMincu deleted the EN-6798/tx-integrity-checks branch June 17, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants