AElfProject / AElf

An AI-enhanced cloud-native layer-1 blockchain network. 
https://aelf.com/
MIT License
1.61k stars 264 forks source link

Wrong constant used for ExecutionCallThreshold #3616

Open gldeng opened 1 month ago

gldeng commented 1 month ago

Description

callCountObserverThreshold is wrongly initialized with SmartContractConstants.ExecutionBranchThreshold value.

Steps To Reproduce

Current Behavior

https://github.com/AElfProject/AElf/blob/88d4e10f7a7bac2d063e10828bb0d8fc7097a989/src/AElf.Kernel.SmartContract/Application/IExecutionObserverThresholdProvider.cs#L35-L36

Expected Behavior

 var callCountObserverThreshold = GetBlockExecutedData(blockIndex, CallCountThresholdKey)?.Value ?? 
                                  SmartContractConstants.ExecutionCallThreshold; 

Environment