craigwatson / bitcoind-status

PHP application to display status and information from the Bitcoin node daemon.
https://odin.vikingserv.net
Apache License 2.0
82 stars 77 forks source link

feature request - update dynamically #29

Closed rebroad closed 7 years ago

rebroad commented 8 years ago

Would it be possible to have the display update dynamically? i.e. not have to refresh the page? Perhaps it could then update every second, if desired. (perhaps too much data for a WAN though).

craigwatson commented 7 years ago

Hi,

Apologies for taking just under two months to respond to this!

Sadly dynamic updates are beyond the scope of the script (let along my abilities, I'm a systems engineer by profession rather than a developer!).

The main concern is that it would be too many RPC calls for the Bitcoin daemon, if you imagine many people with open dynamic connections, it'd be possible to create hundreds of connections from the script.

If you require a dynamic feel, you can shorten the cache time to something more suitable like 2 or 3 minutes.

Hope that helps! Craig