Skip to content

Extend siac hostdb view to include all fields

Matthew Sevey requested to merge sevey-extend-siac-hostdb-view into master

MERGE REQUEST

Overview

Extend siac hostdb view to include all the fields returned from the API.

Example for Visual changes (ie Screenshot)

matt@Carl:~$ siac hostdb view ed25519:ac808bb6c20fa6921a8659e74d6d7a03570b050a98bfb125f23eaa1c00eb0db0
Using SIA_API_PASSWORD environment variable
Host information:
  Public Key:                ed25519:ac808bb6c20fa6921a8659e74d6d7a03570b050a98bfb125f23eaa1c00eb0db0
  Version:                   1.4.3
  Block First Seen:          243522
  Absolute Score:            404803433211120339736681272441656676138560656819787725107577515637000598716416
  Filtered:                  false
  NetAddress:                sia3.overflow.biz:9982
  Last IP Net Change:        2020-01-29 16:10:01.37952666 -0500 EST
  Number of IP Net Changes:  1

  Host Settings:
    Accepting Contracts:       true
    Max Duration:              30240
    Window Size:               144
    Total Storage:             4.0958 TB
    Remaining Storage:         3.9375 TB
    Max Download Batch Size:   17.83 MB
    Max Revision Batch Size:   17.83 MB
    Sector Size:               4.19 MB

    Offered Collateral (TB / Mo):   7.75 SC
    Max Collateral:                 3.505 KS
    Contract Price:                 150 mS
    Base RPC Price:                 0 H
    Sector Access Price:            0 H
    Storage Price (TB / Mo):        7.75 SC
    Download Price (1 TB):          100 mS
    Upload Price (1 TB):            5 SC
    Unlock Hash:                    56736472b11c083e327e4473b7274235cded8b74cab6f5f686bcf63220013b5ffab17ac6ed4e

    Version:           1.4.3
    Revision Number:   824430

  Score Breakdown:
    Age:               0.667
    Burn:              1.000
    Collateral:        3.787
    Duration:          1.000
    Interaction:       0.510
    Price:             352204.819
    Storage:           1.000
    Uptime:            1.000
    Version:           0.893
    Conversion Rate:   11.477

  Scan History Length:               9
  Historic Downtime:                 0s
  Historic Uptime:                   0s
  Historic Failed Interactions:      6.974
  Historic Successful Interactions:  84.412
  Recent Failed Interactions:        0
  Recent Successful Interactions:    0
  Overall Uptime:                    1.000

Issues Closed

N/A

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

Merge request reports