Skip to content

Commit a05701b

Browse files
committed
Use fetchUncheckedButArchiveLater
Signed-off-by: Divam <dfordivam@gmail.com>
1 parent 16c94f0 commit a05701b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

daml/splice-dso-governance/daml/Splice/DsoRules.daml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)