Skip to content

Conversation

SozinM
Copy link
Collaborator

@SozinM SozinM commented Aug 1, 2025

This PR adds Executed block to the OpBuilderPayload.
Previously we were setting in to None.

Changes made: we were performing merge_transitions multiple times, that was the reason for not using executed block, because it was messing with trie_outputs.

I've made the following:
In the beginning of the build_block we are saving the current transition state.
Then we merge them and produce bundle
In the end of the function we are cleaning up the bundle and return back old transition state.

Another change is that we don't send flashblock and don't update best_payload if we receive engine_getPayload

📝 Summary

💡 Motivation and Context


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

right now it has consensus error
2025-08-01T16:10:44.956046Z ERROR engine::persistence: Persistence service failed err=ProviderError(Database(Write(DatabaseWriteError { info: DatabaseErrorInfo { message: "the given key value is mismatched to the current cursor position", code: -30418 }, operation: CursorAppendDup, table_name: "AccountChangeSets", key: [0, 0, 0, 0, 0, 0, 0, 9] })))
@SozinM SozinM changed the title WIP Fix bundle state and produce executed block Aug 1, 2025
@avalonche avalonche merged commit 3e3ead7 into main Aug 4, 2025
4 checks passed
@avalonche avalonche deleted the msozin/bundle-state-improvements branch August 4, 2025 09:46
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