skoupidi 96af06da04 contrib/localnet/darkfid-single-node: updated README.md to reflect latest drk changes 2 лет назад
..
.gitignore f345f7a338 contrib/localnet/darkfid-singe-node: updated to work with latest darkfid 2 лет назад
README.md 96af06da04 contrib/localnet/darkfid-single-node: updated README.md to reflect latest drk changes 2 лет назад
clean.sh f345f7a338 contrib/localnet/darkfid-singe-node: updated to work with latest darkfid 2 лет назад
darkfid.toml c6637029fe darkfid: remove second miners p2p 2 лет назад
drk.toml f345f7a338 contrib/localnet/darkfid-singe-node: updated to work with latest darkfid 2 лет назад
minerd.toml d54e44b573 contrib/localnet/darkfid*: updated to work with latest darkfid 2 лет назад
run-dao-test.sh f345f7a338 contrib/localnet/darkfid-singe-node: updated to work with latest darkfid 2 лет назад
sync-wallet.sh f345f7a338 contrib/localnet/darkfid-singe-node: updated to work with latest darkfid 2 лет назад
tmux_sessions.sh 22c4f2604b contrib/localnet/darkfid*: tmux scripts beautifications 2 лет назад

README.md

darkfid localnet

This will start one darkfid node in localnet mode, along with a minerd daemon to mine blocks.

If we want to test wallet stuff, we must generate a testing wallet and pass its address to the darkfid config, so the wallet gets the block rewards the node produces. We generate a wallet, set it as the default and grab its address:

% ../../../drk -c drk.toml wallet --initialize
% ../../../drk -c drk.toml wallet --keygen
% ../../../drk -c drk.toml wallet --default-address 1
% ../../../drk -c drk.toml wallet --address

Then we replace the recipient field in darkfid.toml config with the output of the last command, start darkfid and wait until its initialized:

% ./tmux_sessions.sh

After some blocks have been generated we will see some DRK in our test wallet.

% ../../../drk -c drk.toml scan
% ../../../drk -c drk.toml wallet --balance

See the user guide in the book for more info.