Browse Source

better handling for node-initialization and rpc-error issues on homepage

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
df7fb91312
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 9
      views/index.pug

9
views/index.pug

@ -7,6 +7,14 @@ block content
h1(class="h3") #{coinConfig.siteTitle}
hr
if (getblockchaininfo == null)
div(class="alert alert-warning")
p(class="font-weight-bold") Unable to get basic blockchain data
ul
li If you just started your node, it may still be initializing.
li If your node is already initialized, check your RPC connection info.
else
if (config.demoSite && session.hideHomepageBanner != "true")
div(class="alert alert-primary alert-dismissible shadow-sm mb-4", role="alert")
span
@ -42,7 +50,6 @@ block content
span(aria-hidden="true") ×
- var networkSummaryItemCount = 4;
if (getblockchaininfo.size_on_disk)

Loading…
Cancel
Save