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

Handle relayed V1, intra-shard, with signal error #99

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Aug 22, 2024

Handle relayed V1, completely intra-shard, whose inner transaction moves native value, which result in signal error - before vs. after Sirius.

See older PR:
#81.

See BigQuery report (analysis of this exotic scenario):
https://console.cloud.google.com/bigquery?sq=667383445384:bfeb7de9aeec453192612ddc7fa9d94e

…ich result in signal error - before vs. after Sirius.
@andreibancioiu andreibancioiu self-assigned this Aug 22, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review August 22, 2024 11:13
Comment on lines +263 to +267
{
Type: opTransfer,
Account: addressToAccountIdentifier(receiverAddress),
Amount: transformer.extension.valueToNativeAmount(innerTx.Value.String()),
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since now we also handle contracts (the receiver in this particular, exotic case).

// - https://github.com/multiversx/mx-chain-rosetta/pull/81/files
// - https://console.cloud.google.com/bigquery?sq=667383445384:bfeb7de9aeec453192612ddc7fa9d94e
func (transformer *transactionsTransformer) extractInnerTxOperationsIfBeforeSiriusRelayedCompletelyIntrashardWithSignalError(tx *transaction.ApiTransactionResult) ([]*types.Operation, error) {
if transformer.provider.IsReleaseSiriusActive(tx.Epoch) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally, we will remove extractInnerTxOperationsIfBeforeSiriusRelayedCompletelyIntrashardWithSignalError sometimes soon, because, most probably, reconciliation for such old transactions isn't necessary.

@andreibancioiu andreibancioiu merged commit 4b118c4 into feat/spica Aug 22, 2024
6 checks passed
@andreibancioiu andreibancioiu deleted the spica-22-1 branch August 22, 2024 12:21
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.

3 participants