Skip to content

WIP: Add extortion detection to RPCs

Marcin Jachymiak requested to merge 2019-11-07-extortion-detection into master

MERGE REQUEST

Overview

Adds extortion checking to RPCs. Extortion is detected by checking if the RPC uses more than 0.5% of the total costs of a contract's funds. This check cannot be currently done with recovered contracts because those fields are not correctly set in the recovery process.

Example for Visual changes (ie Screenshot)

Issues Closed

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods, or updating 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 work flow
  • Issue added to Sia-UI repo for new supporting features

Merge request reports