Program Refund List
MERGE REQUEST
Overview
This MR makes it so the host keeps track of some program information for programs that are currently running, or that have recently been executed. It will keep the information in memory for about 10'. The renter can query them using the program token.
One of the purposes is so the renter can query the amount that got refunded. We can use this to make sure the renter and host are pricing things the same way. If there's a bug it gives us the ability to see from the renter's side what job is being priced differently.
This MR also adds a new RPC that allows the renter to query the refunds list. We could potentially split this off, depending on the amount of back and forth on this MR I'll do that. It's very few lines of code.
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
Closes #4187