You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check for the last BD from the previous stateInfo as now we have the nextValhash available for that block
blockValHash, found := hook.k.GetConsensusStateValHash(ctx, canonicalClient, stateInfo.StartHeight-1)
if found {
previousStateInfo, err := hook.k.rollappKeeper.FindStateInfoByHeight(ctx, rollappId, stateInfo.StartHeight-1)
if err != nil {
return err
}
this code calls FindStateInfoByHeight while it can just get the previous state index. FindStateInfoByHeight is inefficient for this use case
The text was updated successfully, but these errors were encountered:
this code calls
FindStateInfoByHeight
while it can just get the previous state index.FindStateInfoByHeight
is inefficient for this use caseThe text was updated successfully, but these errors were encountered: