Skip to content

Commit

Permalink
add system vm critical section also on contract create
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoAdoAdo committed May 21, 2024
1 parent b8674ca commit 8369e8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vm/process/systemVM.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func NewSystemVM(args ArgsNewSystemVM) (*systemVM, error) {

// RunSmartContractCreate creates and saves a new smart contract to the trie
func (s *systemVM) RunSmartContractCreate(input *vmcommon.ContractCreateInput) (*vmcommon.VMOutput, error) {
s.criticalSection.Lock()
defer s.criticalSection.Unlock()

if input == nil {
return nil, vm.ErrInputArgsIsNil
}
Expand Down

0 comments on commit 8369e8d

Please sign in to comment.