Open coolaj86 opened 3 months ago
Just in case I need this later:
Create some wallets (these names are part of the test code, not arbitrary yet):
git clone https://github.com/dashhive/DashJoin.js.git
pushd ./DashJoin.js/
npm ci
#!/bin/sh
set -e
set -u
for b_username in foobar psend luke han chewie; do
./bin/wallet-create "${b_username}"
done
./bin/dboot --make-junk-user
./bin/dboot --instance=base --create-wallets
./bin/dboot --instance=base --list-users
# creates immature balances
#for b_username in foobar psend luke han chewie; do
# ./bin/dboot --instance=base --generate-to="${b_username}"
#done
# takes a few minutes
./bin/dboot --dash-for-all
# takes a few seconds
./bin/dboot --create-denoms
# matures balances of the other test fixture users
./bin/dboot --grind-junk-user
# creates more coins, matures the previous balances, and imports the mature addresses
for b_username in foobar psend luke han chewie; do
#./bin/dboot --instance=base --generate-to="${b_username}"
./bin/dash-cli-wallet "${b_username}" getbalances
./bin/dboot --instance=base --import-addresses="${b_username}"
done
# creates some denominated coins for each user
./utils/denominate --users=foobar,psend,luke,han,chewie
./bin/dboot --instance=base --all-utxos
Attempt a coinjoin. Supposed the minimum number of participants is only 2: \ Spork 22 introduced in Dash Core 0.16.0 expanded the maximum number of participants to 20 and also reduced the minimum number of participants to 2 for testnet/devnet/regtest networks. The spork was removed in Dash Core 0.17.0 which made the change permanent.
# in one screen
./src/demo.js --instance=base --username=luke
# in a second screen
./src/demo.js --instance=base --username=han
This should work to denominate in the way that ./src/demo.js
expects:
./bin/dboot --split-utxos=luke
Limits:
If you already have a group of configs in
~/.dashmate/
, you can destroy the nodes and begin anew with:Install updates and prereqs
And reduce the amount of logging to something reasonable so that it doesn't fill up the disk from all the docker container messages:
/etc/systemd/journald.conf
:docker
as per https://github.com/webinstall/webi-installer-requests/issues/28#issuecomment-1982087878 \ with special attention to the sections including:groupadd docker
--groupname=docker
nesting=1
(if already running within a container, such as docker)Install
dashmate
as per https://github.com/dashpay/platform/issues/1736#issue-2170387832:~/bin/dashmate-install
:Create a
regtest
(a.k.a. "local") network~/bin/dashmate-regtest-init
: