56362 bc insight during addvalidation if pos not active authority native env state get should consume double the gas
Description
Brief / Intro
if !isPoSActive {
- charger.Charge(thor.SloadGas) // a.getEntry(ValidatorMaster)
+
exists, endorser, _, _, err := Authority.Native(env.State()).Get(thor.Address(args.Validator)) {"native_isEndorsed", func(env *xenv.Environment) []any {
var nodeMaster common.Address
env.ParseArgs(&nodeMaster)
env.UseGas(thor.SloadGas * 2)
listed, endorsor, _, _, err := Authority.Native(env.State()).Get(thor.Address(nodeMaster))Impact Details
References
Previous56367 sc insight staker gas optimization public to external visibilityNext56345 bc insight there is an issue related to strict threshold breaks exact 2 3 and is causing finality freeze
Was this helpful?