Skip to content

Commit

Permalink
Merge branch 'arbos-31' into stylus_pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee authored Jun 26, 2024
2 parents 68663fa + e2c0347 commit bc1b891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arbos/programs/programs.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ func (p Programs) SetProgramCached(
}
expired := program.ageSeconds > am.DaysToSeconds(params.ExpiryDays)

if program.version == 0 && cache {
return ProgramNeedsUpgradeError(0, params.Version)
if program.version != params.Version && cache {
return ProgramNeedsUpgradeError(program.version, params.Version)
}
if expired && cache {
return ProgramExpiredError(program.ageSeconds)
Expand Down

0 comments on commit bc1b891

Please sign in to comment.