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

Feat/scheduled sc execution #3628

Merged
merged 437 commits into from
Jan 31, 2022
Merged

Feat/scheduled sc execution #3628

merged 437 commits into from
Jan 31, 2022

Conversation

AdoAdoAdo
Copy link
Contributor

@AdoAdoAdo AdoAdoAdo commented Dec 8, 2021

This feature branch introduces Scheduled Smart Contract Execution.

The scheduling of smart contract calls is done for the current round by the block producer and also executed during the current round when the scheduling is done, but the results are only available in the next block. This is done in order to not affect the consensus time, but to better use the processing capacity of the validators during consensus.

Activating this feature allows the validators in the consensus group (including the block producers) to use up to 3 seconds of the 6 seconds block time, instead of only 1.5 seconds, to execute transactions (and especially in the second half smart contract calls), which leads to a doubling of the processing capacity of each shard, in the scenarios where the majority of gas is used for smart contract calls processing (which is also the current case of the network).

The implementation follows the internal EIP, which should be checked before reviewing.

SebastianMarian and others added 30 commits August 10, 2021 12:16
…er-instantiation

# Conflicts:
#	go.mod
#	go.sum
…anagement

Scheduled txs root hash management
* Extracted functionality of normal and scheduled scs dest me in a common method, differntiated by the given parameters embeded in a DTO
…ation

trigger registry versioned header support
…sing

* Added check for reserved len > 1 in interceptors
* Added epoch activation for scheduled txs in tx coordinator
…sing

* Added check for reserved len > 1 in interceptors
* Added epoch activation for scheduled txs in tx coordinator
AdoAdoAdo and others added 22 commits January 27, 2022 15:12
* Fixed situation when proposer would not include SCRs from previous block which had scheduled txs execution, because it is running out of time even before starting the creation of the block
…k/elrond-go into fix-processed-mbs-scheduled
…k/elrond-go into fix-processed-mbs-scheduled
epochStart: fix pending mininBlocks for scheduled
…ion-28.01.2022

# Conflicts:
#	genesis/process/shardGenesisBlockCreator.go
#	process/smartContract/hooks/blockChainHook_test.go
#	storage/pruning/pruningStorer.go
#	storage/pruning/triePruningStorer.go
…ed-sc-execution-28.01.2022

Merge dev into feat scheduled sc execution - 28.01.2022
…registry

epochStart, storage: fix backwards compatibility metachain trigger registry
# Conflicts:
#	dblookupext/esdtSupply/logsProcessor_test.go
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed.

Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

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

Proper releases can be done in a separate PR directly on the development branch

@AdoAdoAdo AdoAdoAdo merged commit 1460361 into development Jan 31, 2022
@AdoAdoAdo AdoAdoAdo deleted the feat/scheduled-sc-execution branch January 31, 2022 14:39
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.

None yet

7 participants