Browse Source

cleanup

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
0e72f01d48
  1. 4
      README.md
  2. 10
      routes/baseActionsRouter.js

4
README.md

@ -2,7 +2,7 @@
Simple, database-free Bitcoin blockchain explorer, via RPC. Built with Node.js, express, bootstrap-v4. Simple, database-free Bitcoin blockchain explorer, via RPC. Built with Node.js, express, bootstrap-v4.
This tool is intended to be a simple, self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own bitcoind node. This tool is easy to run but lacks features compared to full-fledged (stateful) explorers. This tool is intended to be a simple, self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own bitcoind node. This tool is easy to run but lacks features compared to full-fledged (database-backed) explorers.
I built this tool because I wanted to use it myself. Whatever reasons one might have for running a full node (trustlessness, technical curiosity, etc) it's helpful to appreciate the "fullness" of a node. With this explorer, one can not only explore the blockchain (in the traditional sense of the term "explorer"), but also explore the capabilities of one's own node. I built this tool because I wanted to use it myself. Whatever reasons one might have for running a full node (trustlessness, technical curiosity, etc) it's helpful to appreciate the "fullness" of a node. With this explorer, one can not only explore the blockchain (in the traditional sense of the term "explorer"), but also explore the capabilities of one's own node.
@ -19,7 +19,7 @@ A live demo of the tool is available at https://btc-explorer.com
* Mempool summary, showing unconfirmed transaction counts by fee level * Mempool summary, showing unconfirmed transaction counts by fee level
* RPC Browser to explore all of the RPC commands available from your node * RPC Browser to explore all of the RPC commands available from your node
* RPC Terminal to send commands to your node * RPC Terminal to send commands to your node
* Currently supports BTC, LTC. Support for any Bitcoin-RPC-protocol-compliant coin can be added easily. * Currently supports BTC, LTC (support for any Bitcoin-RPC-protocol-compliant coin can be added easily)
# Getting started # Getting started

10
routes/baseActionsRouter.js

@ -45,7 +45,7 @@ router.get("/", function(req, res) {
res.render("index"); res.render("index");
}); });
}).catch(function(err) { }).catch(function(err) {
res.locals.userMessage = "Unable to connect to Bitcoin Node at " + env.rpc.host + ":" + env.rpc.port; res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("index"); res.render("index");
}); });
@ -69,22 +69,22 @@ router.get("/node-details", function(req, res) {
res.render("node-details"); res.render("node-details");
}).catch(function(err) { }).catch(function(err) {
res.locals.userMessage = "Unable to connect to Bitcoin Node at " + env.rpc.host + ":" + env.rpc.port; res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details"); res.render("node-details");
}); });
}).catch(function(err) { }).catch(function(err) {
res.locals.userMessage = "Unable to connect to Bitcoin Node at " + env.rpc.host + ":" + env.rpc.port; res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details"); res.render("node-details");
}); });
}).catch(function(err) { }).catch(function(err) {
res.locals.userMessage = "Unable to connect to Bitcoin Node at " + env.rpc.host + ":" + env.rpc.port; res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details"); res.render("node-details");
}); });
}).catch(function(err) { }).catch(function(err) {
res.locals.userMessage = "Unable to connect to Bitcoin Node at " + env.rpc.host + ":" + env.rpc.port; res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details"); res.render("node-details");
}); });

Loading…
Cancel
Save