-
Notifications
You must be signed in to change notification settings - Fork 205
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
Conversation
…if the transaction is of type RelayedTxV2 and the flag check is done on processRelayedTxV2
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.
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() { |
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.
we need an import-db operation to consider this change backwards compatible
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.
We merge this at is and test later in an import-db process
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.
System test passed.
isRelayedTransactionV2
does not check the flag anymore, only returns if the transaction is of typeRelayedTxV2
and the flag check is done onprocessRelayedTxV2
. With this check on,ComputeTransactionType
returns typeMoveBalance
for aRelayedTxV2
with the flag disabled.