Giveth / milestonetracker-ui

User Interface for the Milestone Tracker
GNU General Public License v3.0
8 stars 11 forks source link

Feature/network status #33

Closed kkx closed 7 years ago

kkx commented 7 years ago

related to showing block number tested with local geth, worked. with https://giveth.psdev.io:8545/" the eth.isSyncing is not responding, so it is "synced"

kkx commented 7 years ago

https://trello.com/c/7LdotWc9/39-in-the-right-side-of-menu-show-1-which-network-is-user-connected-to-2-what-block-out-of-total-blocks-is-he-at

p-s-dev commented 7 years ago

Is should be responding with false like this:

$ curl -X POST -H "Content-Type: application/json" -d '[{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]' https://giveth.psdev.io:8545

[{"jsonrpc":"2.0","result":false,"id":1}]
kkx commented 7 years ago

this should work, change to getSyncing since this method exists in both environment

vojtechsimetka commented 7 years ago

I like it, should do some more styling but I think it serves the purpose for now :).