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

Batch execution refactor #2186

Merged
merged 9 commits into from
Dec 6, 2024
Merged

Batch execution refactor #2186

merged 9 commits into from
Dec 6, 2024

Conversation

tudor-malene
Copy link
Collaborator

@tudor-malene tudor-malene commented Dec 5, 2024

Why this change is needed

To help fix a bug that returns phantom events.

What changes were made as part of this PR

  • refactor the "batch executor" logic to make it more clear
  • add a fk from receipt.tx to the transaction table, because now we
  • add a wait for the validator to return the RPC encryption key

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

}
ec.blockEndResult = onBlockTxResult
ec.blockEndResult.MarkSynthetic(true)
// todo - stefan not clear what this does
Copy link
Contributor

Choose a reason for hiding this comment

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

Some paranoia checks I've added; Not sure if we really need them

# Conflicts:
#	go/enclave/components/batch_executor.go
#	go/enclave/crosschain/interfaces.go
@tudor-malene tudor-malene changed the title WIP - preview of the batch execution refactor Batch execution refactor Dec 6, 2024
Copy link
Contributor

@StefanIliev545 StefanIliev545 left a comment

Choose a reason for hiding this comment

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

LGTM, dont see anything wrong;

args = append(args, senders[i]) // sender_address
args = append(args, i) // idx
args = append(args, senderIds[i]) // sender_address
args = append(args, fromIdx+i) // idx
Copy link
Contributor

Choose a reason for hiding this comment

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

I take it this was wrong value previously

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure about the offsets that were passed to the tx execution either

@tudor-malene tudor-malene merged commit 682ee36 into main Dec 6, 2024
2 checks passed
@tudor-malene tudor-malene deleted the tudor/fix_funky_events branch December 6, 2024 10:47
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.

2 participants