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

Shard scheduled mini blocks pre-validation #2889

Conversation

SebastianMarian
Copy link
Contributor

@SebastianMarian SebastianMarian commented Mar 4, 2021

  • Implemented shard scheduled mini blocks pre-validation
  • Added scheduled mini blocks in the proposed body

How to be tested

Start a normal system test with txs and sc calls
In epoch 5 scheduled mini blocks mechanism will be activated.
In epoch 6 we should check the log files and messages like: "createScheduledMiniBlocks has been started", "createScheduledMiniBlocks has been finished" and "scheduled mini blocks from me created" should be found

* Added scheduled mini blocks in the proposed body
@SebastianMarian SebastianMarian added the type:feature New feature or request label Mar 4, 2021
@SebastianMarian SebastianMarian self-assigned this Mar 4, 2021
@SebastianMarian SebastianMarian marked this pull request as draft March 4, 2021 22:45
… be added in sender shard block

* Fixed wrong initialization of totalGasConsumedInSelfShard in method createScheduledMiniBlocks
* Optimized the order of some operations done inside createAndProcessMiniBlocksFromMeV2 and createScheduledMiniBlocks methods
@SebastianMarian SebastianMarian changed the title [WIP] Shard scheduled mini blocks pre-validation Shard scheduled mini blocks pre-validation Mar 10, 2021
@SebastianMarian SebastianMarian marked this pull request as ready for review March 10, 2021 20:14
@sasurobert sasurobert self-requested a review March 15, 2021 07:40
process/block/displayBlock.go Outdated Show resolved Hide resolved
process/block/displayMetaBlock.go Outdated Show resolved Hide resolved
process/block/interceptedBlocks/interceptedMiniblock.go Outdated Show resolved Hide resolved
process/block/preprocess/transactions.go Outdated Show resolved Hide resolved
process/block/preprocess/transactions.go Outdated Show resolved Hide resolved
process/transaction/shardProcess.go Outdated Show resolved Hide resolved
process/block/preprocess/transactionsV2.go Show resolved Hide resolved
process/block/preprocess/transactionsV2.go Outdated Show resolved Hide resolved
…ped/handled correctly at destination (these actions are needed only for now, and will be reverted when processing of scheduled mini blocks will be done in the source shard)
…CTxs contains some of the scheduled txs, before calling the createScheduledMiniBlocks method
…l should be done with mocked methods isShardStuckFalse and isMaxBlockSizeReachedFalse)
@SebastianMarian SebastianMarian changed the base branch from feat/scheduled-SC-execution to feat/scheduled-sc-execution March 25, 2021 13:36
@SebastianMarian SebastianMarian merged commit feb3e94 into feat/scheduled-sc-execution Mar 29, 2021
@SebastianMarian SebastianMarian deleted the shard_scheduled_miniblocks_prevalidation branch March 29, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants