Skip to content

Siae death

David Vorick requested to merge siae-death into master

I replaced siae with some configuration in siad. I know you aren't a huge fan of all the knobs, but I think it's the right way to go about things. I'd rather have 1 daemon with a bunch of buttons than many daemons. One of the places I'm drawing this from is x264, a video compression program with many many knobs. But it makes sense to have all the different settings integrated with the same binary because the core function is the same: compressing video.

In the case of Sia, the core function is to integrate with the Sia network. Renting, hosting, and exploring are all extensions of the consensus mechanisms, and all make use of the protocol. They are also all things that are only interesting to subsets of our userbase.

Changes:

  • siae dropped
  • user-agent requirement changed to be a custom string (specified in api.NewServer)
  • limitedAPI flag added that will hide any sensitive api endpoints, including /daemon/stop
  • mild test reorganization
  • testing for the new user agent and limitedAPI flag
  • flag added to configure the required user agent in the explorer. "" is valid, and will accept all user agents
  • flag added to hide sensitive api endpoints
  • flag added to enable the explorer

Merge request reports