Skip to content

Add block difficulty to ConsensusBlocksGet

Peter-Jan Brone requested to merge 3177-consensus-API-additions into master

MERGE REQUEST

Overview

  • Add block difficulty to consensus/block [GET]

Example for Visual changes (ie Screenshot)

N/A

Issues Closed

Closes #3177 (closed)

Note

Originally the ticket description asked for both difficulty and estimatedhashrate. However due to the fact that the estimatedhashrate is merely an estimate we decided not to add it to the API. Please see modules/explorer/update.go:478 if you'd like to know how to calculate it yourself.

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
  • 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