Skip to content

About

Open-source block explorer and mempool visualizer for qbit

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

qbit-explorer

qbit-explorer is an open-source block explorer and mempool visualizer for qbit. It shows blocks, transactions, addresses, the mempool, fees and mining in real time, and serves a REST and WebSocket API. It runs at https://mempool.qbit.org.

It is a fork of mempool/mempool (see Upstream), adapted to qbit: 2,000,000 weight-unit blocks with no witness discount (vsize == weight), qbit address formats, and P2MR and post-quantum signatures.

Networks

Network Public instance
mainnet https://mempool.qbit.org
testnet4 https://mempool-testnet.qbit.org
regtest None. Run it locally with docs/qbit-local-dev.md.

Architecture

  • frontend/: the Angular web app.
  • backend/: a Node.js and TypeScript service that serves the REST and WebSocket API. It talks to qbitd over RPC and keeps its own data in MariaDB.
  • rust/gbt/: the block-template algorithm in Rust, built as a Node.js addon, which projects the next blocks from the mempool with qbit's weights. Setting MEMPOOL.RUST_GBT to false switches the backend to its slower TypeScript implementation.
  • qbitd, the qbit node from Qbit-Org/qbit. Required.
  • Qbit-Org/qbit-electrs, an optional indexer. Its Esplora REST API (MEMPOOL.BACKEND=esplora) adds address pages and the Esplora-compatible API endpoints. Without it (MEMPOOL.BACKEND=none), the backend runs on qbitd RPC alone.

Getting started

Contributing

Read CONTRIBUTING.md before you open a pull request. AGENTS.md has the validation gates, the test mapping by area, and the qbit consensus reference.

Security

Do not report security problems in public issues. Follow SECURITY.md instead.

Upstream

qbit-explorer is based on mempool/mempool v3.3.1, commit 9332d9db97bcc7beed079acc8f79aa21c9b12a3b. The history keeps upstream's commits up to that release. Commit fd26d63a adds the qbit changes on top of it, and the commits after it are this repository's pull requests.

To bring in an upstream fix, add the upstream remote without its tags, then cherry-pick the commit:

git remote add --no-tags upstream https://github.com/mempool/mempool.git
git fetch upstream
git cherry-pick -x <upstream-commit>

Upstream's release tags use the same names as ours: its releases run from v1.0.0 up, and ours start again at v1.0.0. The --no-tags flag keeps upstream's tags out of your clone. To find an upstream release's commit, run git ls-remote --tags upstream 'v3.3.1^{}'.

If you added the remote earlier without --no-tags, your clone may hold upstream's tags under our names, and a plain git fetch will not replace them. Stop the remote fetching tags, delete your local tags and fetch ours again: git config remote.upstream.tagOpt --no-tags, then git tag -l | xargs git tag -d, then git fetch --tags origin.

Expect conflicts where qbit has changed the same code. Upstream merges pull requests with merge commits, so to pick a whole pull request at once, cherry-pick its merge commit with -m 1. The -x flag records the upstream SHA in the commit message.

Upstream pull requests usually add or edit a contributors/<name>.txt file that signs upstream's contributor license agreement. qbit-explorer has no CLA (see CONTRIBUTING.md), so keep contributors/ out of the tree. If a pick conflicts on one of those files, resolve the conflict with git rm. Before you push, check that git ls-files contributors prints nothing, and remove anything it lists in another commit. CI's Repository checks job fails a pull request that still has them. A maintainer squashes a pull request into one commit before merging it, so files removed in a later commit never reach main. The signed-landing check enforces the squash on a branch that requires it. Where it isn't required, don't merge such a pull request as it is.

License

qbit-explorer is licensed under the GNU Affero General Public License, version 3. LICENSE holds the copyright and trademark notices and the license grant, and COPYING.md holds the full license text.

If you run a modified version as a network service, section 13 of the license requires you to offer its source code to the users of that service.

Trademarks

The Mempool Open Source Project®, mempool.space® and the other mempool names and logos listed in LICENSE are trademarks of Mempool Space K.K. qbit-explorer is not affiliated with or endorsed by Mempool Space K.K.

If you run your own instance, you may keep the Qbit name and logo that come with this software, but don't present your instance as an official Qbit service. To remove qbit.org's header and footer, see Frontend customization.

About

Open-source block explorer and mempool visualizer for qbit

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages