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

pingtime error after upgrading to bitcoin 13.0 #28

Closed bugmeat closed 8 years ago

bugmeat commented 8 years ago

After upgrading to bitcoin 13.0, in the ping column where previously the ping showed '0', it gives an error:

Notice: Undefined index: pingtime in /web/public_html/jazzpie.com/public/bitcoin/html/template.html on line 183 0

The ping displays normal if the ping result is anything other than '0'.

I have never seen this error before, and now have it on both of my servers after the upgrade to bitcoin 13.0.

craigwatson commented 8 years ago

Hi,

Thanks for raising this - I currently don't have a bitcoind 13.0 environment to test, so I'll let you know when I can replicate the issue.

Thanks, Craig

craigwatson commented 8 years ago

Can you please pull the latest code and check that the fix above solves your issue?

The pingtime value is reported by the bitcoin daemon via RPC, and it seems that not all peers include that value, so the status page now displays "Unavailable" if the RPC call for that peer fails to return a value.

bugmeat commented 8 years ago

Craig Watson wrote:

Can you please pull the latest code and check that the fix above solves your issue?

The |pingtime| value is reported by the bitcoin daemon via RPC, and it seems that not all peers include that value, so the status page now displays "Unavailable" if the RPC call for that peer fails to return a value.

Works fine with the latest template.html. It now displays 'Unavailable' instead of the error message.

Thanks,

Al