You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/Abe/abe.py b/Abe/abe.py
index 3aeb033..8d920d3 100755
--- a/Abe/abe.py
+++ b/Abe/abe.py
@@ -627,7 +627,7 @@ class Abe:
body += ['<tr><td>Average Coin Age</td><td>',(b['satoshi_seconds'] / 86400.0 / b['chain_satoshis']),' days']
if b['satoshis_destroyed'] is not None:
body += ['<tr><td>Coin-days Destroyed</td><td>',format_satoshis(b['satoshis_destroyed'] / 86400.0, chain),'</td></tr>']
- if b['chain_satoshi_seconds'] is not None:
+ if b['chain_satoshi_seconds'] is not None and b['chain_satoshi_seconds']:
body += ['<tr><td>Cumulative Coin-days Destroyed</td><td>',(100 * (1 - float(b['satoshi_seconds']) / b['chain_satoshi_seconds']))]
body += ['<tr><td>Short Link</td><td>', abe.short_link(page, 'b/' + block_shortlink(b['hash'])), '</td></tr>']
body += ['</tbody></table></div>']
It will need checking in to git, but it appears to work.
Block 2 is OK:
http://khashier.com/block/0000042f7f9811948352d2ecc9215916f2276a5259ca4cdc4ccfb77a72ed8ebc
but block 1 isn't:
http://khashier.com/block/00000feca63cbde350712358668e0fe90e96c97efab3f0ff5fd9f3147dd2f53e
The text was updated successfully, but these errors were encountered: