xenowits / nakomoto-coefficient-calculator

Nakamoto Coefficient for different blockchains to understand levels of decentralization
https://nakaflow.io
MIT License
36 stars 31 forks source link

[juno] Fix juno url / parsing #51

Closed perryjrandall closed 8 months ago

perryjrandall commented 9 months ago

Juno url has gone missing, update the url and fix the parsing for this format

Test Plan:

docker build . -t xenowits/nc-calc:v0.0.1 && docker run --rm \
-p 8080:8080 xenowits/nc-calc:v0.0.1

...

Total voting power: 57943138972937
The Nakamoto coefficient for juno is 9

...
xenowits commented 9 months ago

Thanks for the PR @perryjrandall !

Can you please run go run main.go and post the NC value for juno here for confirmation? The PR looks good otherwise

perryjrandall commented 9 months ago

Thanks for the PR @perryjrandall !

Can you please run go run main.go and post the NC value for juno here for confirmation? The PR looks good otherwise

Sure, this was also in the test plan (but doing docker build)

$ go run main.go            
...

Total voting power: 57977112615327
The Nakamoto coefficient for juno is 9

...