valory-xyz / open-autonomy

A framework for the creation of autonomous agent services.
https://docs.autonolas.network
Apache License 2.0
79 stars 25 forks source link

fix: store status offences only when slashing enabled #2222

Closed 0xArdi closed 4 months ago

0xArdi commented 4 months ago

Fixes

This PR makes it s.t. offence status changes are only stored in the DB if slashing is enabled.

Types of changes

What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.) Put an x in the box that applies

Checklist

Put an x in the boxes that apply.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.40%. Comparing base (112e5db) to head (8bdce08).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2222 +/- ## ======================================= Coverage 94.39% 94.40% ======================================= Files 260 260 Lines 16104 16110 +6 ======================================= + Hits 15202 15208 +6 Misses 902 902 ``` | [Flag](https://app.codecov.io/gh/valory-xyz/open-autonomy/pull/2222/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=valory-xyz) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/valory-xyz/open-autonomy/pull/2222/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=valory-xyz) | `94.40% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=valory-xyz#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.