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.
 
 
 
 
 
 
Duke Leto 980350b9b4 Stuck in the grind 3 years ago
..
test_framework Stuck in the grind 3 years ago
.gitignore Python-based regression tests 10 years ago
README.md Stuck in the grind 3 years ago
ac_private.py Stuck in the grind 3 years ago
addressindex.py Stuck in the grind 3 years ago
bip65-cltv-p2p.py Stuck in the grind 3 years ago
bipdersig-p2p.py Stuck in the grind 3 years ago
blockchain.py Stuck in the grind 3 years ago
cryptoconditions.py Stuck in the grind 3 years ago
cryptoconditions_channels.py Stuck in the grind 3 years ago
cryptoconditions_dice.py Stuck in the grind 3 years ago
cryptoconditions_faucet.py Stuck in the grind 3 years ago
cryptoconditions_gateways.py Stuck in the grind 3 years ago
cryptoconditions_heir.py Stuck in the grind 3 years ago
cryptoconditions_oracles.py Stuck in the grind 3 years ago
cryptoconditions_rewards.py Stuck in the grind 3 years ago
cryptoconditions_token.py Stuck in the grind 3 years ago
decodescript.py Stuck in the grind 3 years ago
disablewallet.py Stuck in the grind 3 years ago
dpowconfs.py update copyrights 3 years ago
feature_walletfile.py update copyrights 3 years ago
finalsaplingroot.py Stuck in the grind 3 years ago
forknotify.py Stuck in the grind 3 years ago
fundrawtransaction.py Stuck in the grind 3 years ago
getblocktemplate.py Stuck in the grind 3 years ago
getblocktemplate_longpoll.py Stuck in the grind 3 years ago
getblocktemplate_proposals.py Stuck in the grind 3 years ago
getchaintips.py Stuck in the grind 3 years ago
hardforkdetection.py Stuck in the grind 3 years ago
httpbasics.py Stuck in the grind 3 years ago
invalidateblock.py Stuck in the grind 3 years ago
invalidblockrequest.py Stuck in the grind 3 years ago
ivk_import_export.py Stuck in the grind 3 years ago
key_import_export.py Stuck in the grind 3 years ago
keypool.py Stuck in the grind 3 years ago
listtransactions.py Stuck in the grind 3 years ago
maxblocksinflight.py Stuck in the grind 3 years ago
mempool_nu_activation.py Stuck in the grind 3 years ago
mempool_reorg.py Stuck in the grind 3 years ago
mempool_resurrect_test.py Stuck in the grind 3 years ago
mempool_spendcoinbase.py Stuck in the grind 3 years ago
mempool_tx_expiry.py Stuck in the grind 3 years ago
mempool_tx_input_limit.py Stuck in the grind 3 years ago
merkle_blocks.py Stuck in the grind 3 years ago
nodehandling.py Stuck in the grind 3 years ago
nspv_client_test.py Stuck in the grind 3 years ago
p2p-acceptblock.py Stuck in the grind 3 years ago
p2p_node_bloom.py Stuck in the grind 3 years ago
p2p_txexpiry_dos.py Stuck in the grind 3 years ago
prioritisetransaction.py Stuck in the grind 3 years ago
proxy_test.py Stuck in the grind 3 years ago
pruning.py Stuck in the grind 3 years ago
rawtransactions.py Stuck in the grind 3 years ago
receivedby.py Stuck in the grind 3 years ago
regtest_signrawtransaction.py update copyrights 3 years ago
reindex.py update copyrights 3 years ago
rest.py Stuck in the grind 3 years ago
rewind_index.py Stuck in the grind 3 years ago
rpcbind_test.py Stuck in the grind 3 years ago
script_test.py Stuck in the grind 3 years ago
signrawtransaction_offline.py Stuck in the grind 3 years ago
signrawtransactions.py Stuck in the grind 3 years ago
smartfees.py Stuck in the grind 3 years ago
spentindex.py Stuck in the grind 3 years ago
timestampindex.py Stuck in the grind 3 years ago
txindex.py Stuck in the grind 3 years ago
txn_doublespend.py Stuck in the grind 3 years ago
wallet.py Stuck in the grind 3 years ago
wallet_1941.py Stuck in the grind 3 years ago
wallet_addresses.py Stuck in the grind 3 years ago
wallet_anchorfork.py Stuck in the grind 3 years ago
wallet_changeindicator.py Stuck in the grind 3 years ago
wallet_import_export.py Stuck in the grind 3 years ago
wallet_listnotes.py update copyrights 3 years ago
wallet_listreceived.py Stuck in the grind 3 years ago
wallet_mergetoaddress.py Stuck in the grind 3 years ago
wallet_nullifiers.py Stuck in the grind 3 years ago
wallet_overwintertx.py Stuck in the grind 3 years ago
wallet_persistence.py Stuck in the grind 3 years ago
wallet_protectcoinbase.py Stuck in the grind 3 years ago
wallet_sapling.py Stuck in the grind 3 years ago
wallet_shieldcoinbase.py Stuck in the grind 3 years ago
wallet_shieldcoinbase_sapling.py Stuck in the grind 3 years ago
wallet_treestate.py Stuck in the grind 3 years ago
walletbackup.py Stuck in the grind 3 years ago
zapwallettxes.py Stuck in the grind 3 years ago
zkey_import_export.py Stuck in the grind 3 years ago
zmq_test.py Stuck in the grind 3 years 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.

Also it's possible to run CryptoConditions tests only by qa/pull-tester/cc-tests.sh --noshutdown --tracerpc

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 komodod

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