Price Gouging
MERGE REQUEST
Overview
This MR is a slight refactor on our current gouging checks. It defines two new objects, PriceTableGougingChecks
and HostSettingsGougingChecks
that can be calculated once and then later consulted on an individual gouging check level. E.g. when we receive the host's price table, we run all gouging checks and save the result, invidivual RPCs can then go and consult that single object.
This will also be useful in the hostdb to score (or exclude) hosts depending on their pricing.
TODO:
-
make sure checkPCWSGouging
is refactored -
resolve/implement #4417 (closed) ?
Example for Visual Changes
N/A
Checklist
Review and complete the checklist to ensure that the MR is complete before assigned to an approver.
-
All new methods or updated methods have clear docstrings -
Testing added or updated for new methods -
Any new packages are added to Makefile and .gitlab-ci.yml -
API documentation updated for API updates -
Module README.md updated for changes to workflow -
Issue added to Sia-UI repo for new supporting features -
Changelog File Created
Issues Closed
close #4412 (closed)