Skip to content

Commit

Permalink
Fixed lable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Levi committed Dec 3, 2024
1 parent 7fd4da5 commit 38bdd1a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Simple, database-free Briskcoin blockchain explorer, via RPC to [Briskcoin Core](https://github.com/briskcoin-project/briskcoin).

This is a simple, self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own [Briskcoin](https://github.com/briskcoin-project/briskcoin) node. It is easy to run and can be connected to other tools (like [ElectrumX](https://github.com/spesmilo/electrumx)) to achieve a full-featured explorer.
This is a simple, self-hosted explorer for the Briskcoin blockchain, driven by RPC calls to your own [Briskcoin](https://github.com/briskcoin-project/briskcoin) node. It is easy to run and can be connected to other tools (like [ElectrumX](https://github.com/spesmilo/electrumx)) to achieve a full-featured explorer.

Whatever reasons one may have for running a full node (trustlessness, technical curiosity, supporting the network, etc) it's helpful to appreciate the "fullness" of your node. With this explorer, you can explore not just the blockchain database, but also explore the functional capabilities of your own node.

Expand Down Expand Up @@ -32,7 +32,7 @@ See [CHANGELOG.md](/CHANGELOG.md).
## Prerequisites

1. Install and run a full, archiving node - [instructions](https://briskcoin.org/en/full-node). Ensure that your briskcoin node has its RPC server enabled (`server=1`).
2. Synchronize your node with the Bitcoin network (you *can* use this tool while your node is still sychronizing, but some pages may fail).
2. Synchronize your node with the Briskcoin network (you *can* use this tool while your node is still sychronizing, but some pages may fail).
3. Install a "recent" version of Node.js (8+ recommended).

### Note about pruning and indexing configurations
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ async function onRpcConnectionVerified(getnetworkinfo, getblockchaininfo) {
// short-circuit: force all RPC calls to pass their version checks - this will likely lead to errors / instability / unexpected results
global.btcNodeSemver = "1000.1000.0"

debugErrorLog(`Unable to parse node version string: ${getnetworkinfo.subversion} - RPC versioning will likely be unreliable. Is your node a version of Bitcoin Core?`);
debugErrorLog(`Unable to parse node version string: ${getnetworkinfo.subversion} - RPC versioning will likely be unreliable. Is your node a version of Briskcoin Core?`);
}

debugLog(`RPC Connected: version=${getnetworkinfo.version} subversion=${getnetworkinfo.subversion}, parsedVersion(used for RPC versioning)=${global.btcNodeSemver}, protocolversion=${getnetworkinfo.protocolversion}, chain=${getblockchaininfo.chain}, services=${services}`);
Expand Down
2 changes: 1 addition & 1 deletion app/api/blockchairAddressApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const utils = require("./../utils.js");
function getAddressDetails(address, scriptPubkey, sort, limit, offset) {
// Note: blockchair api seems to not respect the limit parameter, always using 100
return new Promise(async (resolve, reject) => {
var mainnetUrl = `https://api.blockchair.com/bitcoin/dashboards/address/${address}/?offset=${offset}`;
var mainnetUrl = `https://explorer.briskcoin.org/address/${address}/?offset=${offset}`;
var testnetUrl = `https://api.blockchair.com/bitcoin/testnet/dashboards/address/${address}/?offset=${offset}`;
var url = (global.activeBlockchain == "main") ? mainnetUrl : ((global.activeBlockchain == "test") ? testnetUrl : mainnetUrl);

Expand Down
8 changes: 4 additions & 4 deletions routes/baseRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ router.get("/block-height/:blockHeight", asyncHandler(async (req, res, next) =>
res.locals.metaDesc = "";
}
} else {
res.locals.metaTitle = `Bitcoin Block #${blockHeight.toLocaleString()}`;
res.locals.metaTitle = `Briskcoin Block #${blockHeight.toLocaleString()}`;
res.locals.metaDesc = "";
}

Expand Down Expand Up @@ -1203,7 +1203,7 @@ router.get("/block/:blockHash", asyncHandler(async (req, res, next) => {
}

} else {
res.locals.metaTitle = `Bitcoin Block ${utils.ellipsizeMiddle(res.locals.result.getblock.hash, 16)}`;
res.locals.metaTitle = `Briskcoin Block ${utils.ellipsizeMiddle(res.locals.result.getblock.hash, 16)}`;
res.locals.metaDesc = "";
}

Expand Down Expand Up @@ -1456,7 +1456,7 @@ router.get("/tx/:transactionId", asyncHandler(async (req, res, next) => {
res.locals.metaDesc = "";
}
} else {
res.locals.metaTitle = `Bitcoin Transaction ${utils.ellipsizeMiddle(txid, 16)}`;
res.locals.metaTitle = `Briskcoin Transaction ${utils.ellipsizeMiddle(txid, 16)}`;
res.locals.metaDesc = "";
}

Expand Down Expand Up @@ -1529,7 +1529,7 @@ router.get("/address/:address", asyncHandler(async (req, res, next) => {
}


res.locals.metaTitle = `Bitcoin Address ${address}`;
res.locals.metaTitle = `Briskcoin Address ${address}`;

res.locals.address = address;
res.locals.limit = limit;
Expand Down
2 changes: 1 addition & 1 deletion views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ html(lang="en")

if (false && config.demoSite)
- var networkNameMap = {"main": "Mainnet", "test": "Testnet", "signet": "Signet"};
span.badge.bg-primary(title=`This is a public demo, but this tool is designed to be installed and run by all Bitcoiners...<br/><i>Don't Trust, Verify</i>!`, data-bs-toggle="tooltip", data-bs-html="true")
span.badge.bg-primary(title=`This is a public demo, but this tool is designed to be installed and run by all Briskcoiners...<br/><i>Don't Trust, Verify</i>!`, data-bs-toggle="tooltip", data-bs-html="true")
span Public Demo

button.navbar-toggler.navbar-toggler-end(type="button", data-bs-toggle="collapse", data-bs-target="#navbarNav", aria-label="collapse navigation")
Expand Down

0 comments on commit 38bdd1a

Please sign in to comment.