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

Execution component for scheduled transactions #2917

Conversation

SebastianMarian
Copy link
Contributor

@SebastianMarian SebastianMarian commented Mar 19, 2021

  • Implemented execution component for scheduled transactions

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

@SebastianMarian SebastianMarian added the type:feature New feature or request label Mar 19, 2021
@SebastianMarian SebastianMarian self-assigned this Mar 19, 2021
@sasurobert sasurobert self-requested a review March 19, 2021 16:44
@@ -640,6 +628,12 @@ func (txs *transactions) verifyTransaction(
txs.mutAccountsInfo.Unlock()

if err != nil {
isTxTargetedForDeletion := errors.Is(err, process.ErrLowerNonceInTransaction) || errors.Is(err, process.ErrInsufficientFee)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe use a small DTO for line 598-601

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

sasurobert
sasurobert previously approved these changes Mar 23, 2021
AdoAdoAdo
AdoAdoAdo previously approved these changes Mar 25, 2021
Base automatically changed from shard_scheduled_miniblocks_prevalidation to feat/scheduled-sc-execution March 29, 2021 13:37
@SebastianMarian SebastianMarian dismissed stale reviews from AdoAdoAdo and sasurobert March 29, 2021 13:37

The base branch was changed.

…or-scheduled-transactions

# Conflicts:
#	process/block/argProcessor.go
#	process/block/baseProcess.go
#	process/interface.go
* Reduced additional time allocated for creating scheduled mini blocks
@SebastianMarian SebastianMarian merged commit c9456b5 into feat/scheduled-sc-execution Mar 30, 2021
@SebastianMarian SebastianMarian deleted the execution-component-for-scheduled-transactions branch March 30, 2021 14:00
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