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

Fix isRelayedTransactionV2 causing ComputeTransactionType to return improper type #4138

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

sstanculeanu
Copy link
Collaborator

@sstanculeanu sstanculeanu commented May 31, 2022

  • isRelayedTransactionV2 does not check the flag anymore, only returns if the transaction is of type RelayedTxV2 and the flag check is done on processRelayedTxV2. With this check on, ComputeTransactionType returns type MoveBalance for a RelayedTxV2 with the flag disabled.

Unverified

This user has not yet uploaded their public signing key.
…if the transaction is of type RelayedTxV2 and the flag check is done on processRelayedTxV2
@sstanculeanu sstanculeanu self-assigned this May 31, 2022
@sstanculeanu sstanculeanu marked this pull request as draft May 31, 2022 08:33
@sstanculeanu sstanculeanu marked this pull request as ready for review May 31, 2022 09:30
Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

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

not sure this PR is backwards compatible, we need an extra check

@@ -183,9 +171,6 @@ func (tth *txTypeHandler) isRelayedTransactionV1(functionName string) bool {
}

func (tth *txTypeHandler) isRelayedTransactionV2(functionName string) bool {
if !tth.flagRelayedTxV2.IsSet() {
Copy link
Contributor

Choose a reason for hiding this comment

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

we need an import-db operation to consider this change backwards compatible

Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

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

We merge this at is and test later in an import-db process

Copy link
Contributor

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.

Unverified

This user has not yet uploaded their public signing key.
@sstanculeanu sstanculeanu merged commit 376dddf into development Jun 15, 2022
@sstanculeanu sstanculeanu deleted the fix-isRelayedTxV2 branch June 15, 2022 08:10
@sstanculeanu sstanculeanu changed the title Fix isRelayedTransactionV2 Fix isRelayedTransactionV2 method in order causing ComputeTransactionType to return improper type Aug 4, 2022
@sstanculeanu sstanculeanu added the type:bug Something isn't working label Aug 4, 2022
@sstanculeanu sstanculeanu changed the title Fix isRelayedTransactionV2 method in order causing ComputeTransactionType to return improper type Fix isRelayedTransactionV2 causing ComputeTransactionType to return improper type Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants