@@ -97,11 +97,6 @@ contract FilecoinWarmStorageService is
9797 event ProviderApproved (uint256 indexed providerId );
9898 event ProviderUnapproved (uint256 indexed providerId );
9999
100- // Event for validation
101- event PaymentArbitrated (
102- uint256 railId , uint256 dataSetId , uint256 originalAmount , uint256 modifiedAmount , uint256 faultedEpochs
103- );
104-
105100 // =========================================================================
106101 // Structs
107102
@@ -1488,7 +1483,7 @@ contract FilecoinWarmStorageService is
14881483 uint256 fromEpoch ,
14891484 uint256 toEpoch ,
14901485 uint256 /* rate */
1491- ) external override returns (ValidationResult memory result ) {
1486+ ) external view override returns (ValidationResult memory result ) {
14921487 // Get the data set ID associated with this rail
14931488 uint256 dataSetId = railToDataSet[railId];
14941489 require (dataSetId != 0 , Errors.RailNotAssociated (railId));
@@ -1535,9 +1530,6 @@ contract FilecoinWarmStorageService is
15351530 // Calculate how many epochs were not proven (faulted)
15361531 uint256 faultedEpochs = totalEpochsRequested - provenEpochCount;
15371532
1538- // Emit event for logging
1539- emit PaymentArbitrated (railId, dataSetId, proposedAmount, modifiedAmount, faultedEpochs);
1540-
15411533 return ValidationResult ({
15421534 modifiedAmount: modifiedAmount,
15431535 settleUpto: lastProvenEpoch, // Settle up to the last proven epoch
0 commit comments