Git Product home page Git Product logo

decentralizer-cli's People

Contributors

hakkane84 avatar tbenz9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

decentralizer-cli's Issues

Feature Request: Consolodate hosts to a region

I haven't thought about the details of this yet but it would be really cool if decentralizer was able to accept a region (such as USA) and only keep host contracts with hosts in that region. I could see this being useful for users who have region requirements (like the data must stay in the UK).

I can see a use case where you might want hosts only INSIDE the US to keep latency down. And I can see a situation where you would want hosts only OUTSIDE the US to reduce chance of data liability, etc.

error after scanning contracts

Detecting hosting farms among contracts
timers.js:498
timer._onTimeout();
^

TypeError: Cannot read property 'length' of undefined
at siastatsProcess (/snapshot/decentralizer-cli/decentralizer.js:0:0)
at processHosts (/snapshot/decentralizer-cli/decentralizer.js:0:0)
at Timeout._onTimeout (/snapshot/decentralizer-cli/decentralizer.js:0:0)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

Decentralizer should give a better warning if user has 0 contracts

If a user has 0 contracts decentralizer reports that it can't connect to Sia. Sia is working fine, but there are 0 contracts.

tbenz9@spartan1:~/dev/Decentralizer$ siac consensus                                                                                                            
Synced: Yes                                                                                                                                                    
Block:      00000000000000003e3e9bfd5afc6552de4f9a4cdd9517960b2e7df82479e5a5                                                                                   
Height:     171947                                                                                                                                             
Target:     [0 0 0 0 0 0 0 0 94 113 5 180 246 255 34 127 87 84 142 152 124 42 80 136 87 48 186 61 192 94 179 160]                                              
Difficulty: 50003089916781990517                                                                                                                                                                                                                                                 
tbenz9@spartan1:~/dev/Decentralizer$ siac version                                                                                                              
Sia Client                                                                                                                                                     
        Version 1.3.4                                                                                                                                          
        Git Revision 805b342e                                                                                                                                  
        Build Time   Wed Sep 12 10:17:03 PDT 2018                                                                                                              
Sia Daemon                                                                                                                                                     
        Version 1.3.4                                                                                                                                          
        Git Revision 805b342e                                                                                                                                  
        Build Time   Wed Sep 12 10:17:03 PDT 2018   
tbenz9@spartan1:~/dev/Decentralizer$ node decentralizer.js scan                                                                                                
                                                                                                                                                               
*** KEOPS DECENTRALIZER v0.1.0 ***                                                                                                                             
Connecting to Sia...                                                                                                                                           
Geolocating hosts:                                                                                                                                             
                                                                                                                                                               
Error retrieving data from Sia. Is Sia working, synced and connected to internet? Try this script again after restarting Sia.                                  
                                                                                                                                                               
tbenz9@spartan1:~/dev/Decentralizer$ siac renter contracts                                                                                                     
Active Contracts:                                                                                                                                              
  No active contracts.                                                                                                                                         
                                                                                                                                                               
Inactive Contracts:                                                                                                                                            
  No inactive contracts.   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.