Hush Full Node software. We were censored from Github, this is where all development happens now. https://hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jahway603 4a3c335050 minor QA changes 2 months ago
..
test_framework minor QA changes 2 months ago
.gitignore Python-based regression tests 10 years ago
README.md Fix compile error and remove some cryptocondition dingleberries 2 months ago
ac_private.py Update copyrights 2 months ago
addressindex.py Update copyrights 2 months ago
antispam.py Update copyrights 2 months ago
bip65-cltv-p2p.py Update copyrights 2 months ago
bipdersig-p2p.py Update copyrights 2 months ago
blockchain.py Update copyrights 2 months ago
decodescript.py Update copyrights 2 months ago
disablewallet.py Update copyrights 2 months ago
dpowconfs.py Update copyrights 2 months ago
feature_walletfile.py Update copyrights 2 months ago
finalsaplingroot.py Update copyrights 2 months ago
forknotify.py Update copyrights 2 months ago
fundrawtransaction.py Update copyrights 2 months ago
getblocktemplate.py Update copyrights 2 months ago
getblocktemplate_longpoll.py Update copyrights 2 months ago
getblocktemplate_proposals.py Update copyrights 2 months ago
getchaintips.py Update copyrights 2 months ago
hardforkdetection.py Update copyrights 2 months ago
httpbasics.py Update copyrights 2 months ago
invalidateblock.py Update copyrights 2 months ago
invalidblockrequest.py Update copyrights 2 months ago
ivk_import_export.py Update copyrights 2 months ago
key_import_export.py Update copyrights 2 months ago
keypool.py Update copyrights 2 months ago
listtransactions.py Update copyrights 2 months ago
maxblocksinflight.py Update copyrights 2 months ago
mempool_nu_activation.py Update copyrights 2 months ago
mempool_reorg.py Update copyrights 2 months ago
mempool_resurrect_test.py Update copyrights 2 months ago
mempool_spendcoinbase.py Update copyrights 2 months ago
mempool_tx_expiry.py Update copyrights 2 months ago
mempool_tx_input_limit.py Update copyrights 2 months ago
merkle_blocks.py Update copyrights 2 months ago
nodehandling.py Update copyrights 2 months ago
nspv_client_test.py Update copyrights 2 months ago
p2p-acceptblock.py Update copyrights 2 months ago
p2p_node_bloom.py Update copyrights 2 months ago
p2p_txexpiry_dos.py Update copyrights 2 months ago
prioritisetransaction.py Update copyrights 2 months ago
proxy_test.py Update copyrights 2 months ago
pruning.py Update copyrights 2 months ago
rawtransactions.py Update copyrights 2 months ago
receivedby.py Update copyrights 2 months ago
regtest_signrawtransaction.py Update copyrights 2 months ago
reindex.py Update copyrights 2 months ago
rest.py Update copyrights 2 months ago
rewind_index.py Update copyrights 2 months ago
rpcbind_test.py Update copyrights 2 months ago
script_test.py Update copyrights 2 months ago
signrawtransaction_offline.py Update copyrights 2 months ago
signrawtransactions.py Update copyrights 2 months ago
smartfees.py Update copyrights 2 months ago
spentindex.py Update copyrights 2 months ago
timestampindex.py Update copyrights 2 months ago
txindex.py Update copyrights 2 months ago
txn_doublespend.py Update copyrights 2 months ago
wallet.py Update copyrights 2 months ago
wallet_1941.py Update copyrights 2 months ago
wallet_addresses.py Update copyrights 2 months ago
wallet_anchorfork.py Update copyrights 2 months ago
wallet_changeindicator.py Update copyrights 2 months ago
wallet_import_export.py Update copyrights 2 months ago
wallet_listnotes.py Update copyrights 2 months ago
wallet_listreceived.py Update copyrights 2 months ago
wallet_mergetoaddress.py Update copyrights 2 months ago
wallet_nullifiers.py Update copyrights 2 months ago
wallet_overwintertx.py Update copyrights 2 months ago
wallet_persistence.py Update copyrights 2 months ago
wallet_protectcoinbase.py Update copyrights 2 months ago
wallet_sapling.py Update copyrights 2 months ago
wallet_shieldcoinbase.py Update copyrights 2 months ago
wallet_shieldcoinbase_sapling.py Update copyrights 2 months ago
wallet_treestate.py Update copyrights 2 months ago
walletbackup.py Update copyrights 2 months ago
zapwallettxes.py Update copyrights 2 months ago
zkey_import_export.py Update copyrights 2 months ago

README.md

Regression tests of RPC interface

test_framework/test_framework.py

Base class for RPC regression tests.

test_framework/util.py

Generally useful functions.

Notes

You can run a single test by calling qa/pull-tester/rpc-tests.sh <testname>.

Run all possible tests with qa/pull-tester/rpc-tests.sh -extended.

Possible options:

-h, --help       show this help message and exit
  --nocleanup      Leave binaries and test.* datadir on exit or error
  --noshutdown     Don't stop full node after the test execution
  --srcdir=SRCDIR  Source directory containing hushd/hush-cli (default: ../../src)
  --tmpdir=TMPDIR  Root directory for datadirs
  --tracerpc       Print out all RPC calls as they are made

If you set the environment variable PYTHON_DEBUG=1 you will get some debug output (example: PYTHON_DEBUG=1 qa/pull-tester/rpc-tests.sh wallet).

A 200-block -regtest blockchain and wallets for four nodes is created the first time a regression test is run and is stored in the cache/ directory. Each node has the miner subsidy from 25 mature blocks (25*10=250 HUSH) in its wallet.

After the first run, the cache/ blockchain and wallets are copied into a temporary directory and used as the initial test state.

If you get into a bad state, you should be able to recover with:

rm -rf cache
killall hushd

but beware that could kill various other processes you might not want to kill!