A hand-run harness that checks DogeJS against a real Dogecoin Core node in regtest mode.
Live demo · Documentation · All DogeJS projects
- Runs DogeJS against a real Dogecoin Core node in regtest mode and checks that the two agree: addresses, keys, message signatures, transactions, fees, multisig and the shared file formats.
- Checks the
CoreRpcBackend, transaction watching through a reorg, and the genesis hashes. - Runs the built command-line tool as a child process, and the light node syncing headers over P2P and checking
gettxoutproofproofs. - Refuses to touch anything that is not regtest, and keeps credentials out of its reports.
- Has a self-test that runs the whole harness against a fake in-process node, so you can see it work before you set up a real one.
There is no web page for this one: it needs a Dogecoin Core node that you start yourself. See the runbook in docs/REFERENCE.md (install Core, make a regtest config, start the node, run the harness). The product pages live at https://dogejs.com/.
One command shows the list of checks, with no node needed:
node scripts/regtest.mjs --listThe list of checks the harness runs against a node.
This package is private and not on npm. Clone the repository and install; npm fetches core, backends, light-node and cli from their git tags and builds them:
git clone https://github.com/DogeJS-Dev/integration-tests.git
cd integration-tests
npm installProve that the harness itself works (about a minute; it runs against a fake node and needs no Dogecoin software):
npm test # syntax check, then the 39-test self-testList the checks:
node scripts/regtest.mjs --listRun it against a real regtest node (see the runbook for how to start one):
export DOGE_RPC_USER=dogejs
node scripts/regtest.mjs --password-file "$HOME/dogejs-regtest/rpc-password.txt" --keep-going --json report.jsonThe harness talks to the node's JSON-RPC, first verifying that the chain is regtest and refusing to continue otherwise. Each check builds or signs something with DogeJS, asks the real node to accept or reproduce it, and compares the results byte for byte. Failures name the package to look at (section 7 of the reference). Exit code 0 means no check failed, 1 at least one failed, and 2 means it refused, could not connect, or was used wrongly.
- Checks core, backends, light-node and the cli, which it imports from their git tags.
Version 0.2.1, and the package is private. The harness has never been run against a real node: none could run where it was written. The only thing that has been run is --self-test, which runs it against a fake node and a fake P2P peer. A passing self-test proves that the harness logic runs; it does not prove that DogeJS agrees with Dogecoin Core. Expect to fix a few harness mistakes on the first real run. The new features of the latest core and light-node versions (PSBT, @dogejs/node/verify) have no regtest check yet.
Bug reports, ideas and pull requests are welcome. Read the contributing guide first: small, tested, explained.
npm install
npm testReport a security problem privately to hello@dogejs.com, never in a public issue. See SECURITY.md.
The maintainers keep one combined development workspace for all DogeJS projects and publish each project from it as a repository of its own. An accepted pull request is applied there and appears here with the next release.
MIT, see LICENSE.


