File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
daml/splice-dso-governance/daml/Splice Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1296,7 +1296,10 @@ template DsoRules with
12961296
12971297 -- expire validator liveness activity records and compute their unclaimed rewards
12981298 expiredValidatorLivenessActivityRecords <- forA (fromOptional [] optValidatorLivenessActivityRecordCids) $ \validatorLivenessActivityRecordCid -> do
1299- record <- fetch validatorLivenessActivityRecordCid
1299+ -- We need to fetch the weight, and would also prefer doing DsoExpire
1300+ -- We can't do checked fetch as the owner is the validator
1301+ -- hence can't use either fetchAndArchive or fetchUncheckedAndArchive
1302+ record <- fetchUncheckedButArchiveLater validatorLivenessActivityRecordCid
13001303 exercise validatorLivenessActivityRecordCid ValidatorLivenessActivityRecord_DsoExpire with closedRoundCid
13011304 return (fromOptional defaultValidatorLicenseWeight record.weight)
13021305
You can’t perform that action at this time.
0 commit comments