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 75fa411537 Tweak some test suite stuff 4 years ago
..
test_framework Tweak some test suite stuff 4 years ago
.gitignore Python-based regression tests 10 years ago
README.md Update RPC readme 4 years ago
ac_private.py Update ac_private test, which almost passes 4 years ago
addressindex.py +x 4 years ago
bip65-cltv-p2p.py Fix BIP65 and BIP66 tests 7 years ago
bipdersig-p2p.py Fix BIP65 and BIP66 tests 7 years ago
blockchain.py rpc: update inline comments to refer to new file paths 6 years ago
cryptoconditions.py +x 4 years ago
cryptoconditions_channels.py Update cryptoconditions_channels.py 5 years ago
cryptoconditions_dice.py Update cryptoconditions_dice.py 5 years ago
cryptoconditions_faucet.py Update cryptoconditions_faucet.py 5 years ago
cryptoconditions_gateways.py update rpc-cc scripts for address keys 5 years ago
cryptoconditions_heir.py update rpc-cc scripts for address keys 5 years ago
cryptoconditions_oracles.py Update cryptoconditions_oracles.py 5 years ago
cryptoconditions_rewards.py Update cryptoconditions_rewards.py 5 years ago
cryptoconditions_token.py update rpc-cc scripts for address keys 5 years ago
decodescript.py Resolve issue bitcoin/bitcoin#3166. 6 years ago
disablewallet.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
dpowconfs.py Update copyright 4 years ago
finalsaplingroot.py add test for sapling spend with transparent recipient 6 years ago
forknotify.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
fundrawtransaction.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getblocktemplate.py Add hashFinalSaplingRoot to getblocktemplate 6 years ago
getblocktemplate_longpoll.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getblocktemplate_proposals.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getchaintips.py [QA] restructure rpc tests directory 9 years ago
hardforkdetection.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
httpbasics.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
invalidateblock.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
invalidblockrequest.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
ivk_import_export.py Add support for importing and exporting sapling ivk 5 years ago
key_import_export.py Fix pyflakes warnings in RPC tests 7 years ago
keypool.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
listtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
maxblocksinflight.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
mempool_nu_activation.py test suite tweaks 4 years ago
mempool_reorg.py Add failing test checking timelocked-txn removal during reorg 6 years ago
mempool_resurrect_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
mempool_spendcoinbase.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
mempool_tx_expiry.py Add test for dependent txs to mempool_tx_expiry.py 6 years ago
mempool_tx_input_limit.py Allow passing timeout parameter to wait_and_assert_operationid_status 6 years ago
merkle_blocks.py Closes #3178 by adding verbosity level improvements to getblock RPC. 6 years ago
nodehandling.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
nspv_client_test.py def amount change 5 years ago
p2p-acceptblock.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
p2p_node_bloom.py generalize mininode.py protocol versioning 6 years ago
p2p_nu_peer_management.py qa: Test both Overwinter and Sapling peer management 6 years ago
p2p_txexpiry_dos.py generalize mininode.py protocol versioning 6 years ago
paymentdisclosure.py Auto merge of #2796 - per-gron:less-verbose-tests, r=daira 7 years ago
prioritisetransaction.py Deduplicate test utility method wait_and_assert_operationid_status 7 years ago
proton_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
proxy_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
pruning.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
rawtransactions.py [RPC] createrawtransaction: add option to set the sequence number per input 6 years ago
receivedby.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
regtest_signrawtransaction.py Closes #3534. Do not use APPROX_RELEASE_HEIGHT to get consensus branch 6 years ago
reindex.py Update test copyrights 4 years ago
rest.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
rewind_index.py Add RPC test of RewindBlockIndex 6 years ago
rpcbind_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
script_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
signrawtransaction_offline.py Update qa test as offline regtest nodes need branch id passed in. 6 years ago
signrawtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
smartfees.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
spentindex.py +x 4 years ago
timestampindex.py Update timestamp index test 4 years ago
txindex.py +x 4 years ago
txn_doublespend.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
wallet.py Remove unused imports 6 years ago
wallet_1941.py Deduplicate test utility method wait_and_assert_operationid_status 7 years ago
wallet_addresses.py test: Fix permissions of wallet_addresses 6 years ago
wallet_anchorfork.py cleanup: Ensure code is pyflakes-clean for CI 6 years ago
wallet_changeindicator.py test suite tweaks 4 years ago
wallet_import_export.py Fix HDSeed comment 6 years ago
wallet_listnotes.py Cleanup to address review comments. 6 years ago
wallet_listreceived.py test suite tweaks 4 years ago
wallet_mergetoaddress.py Implement note locking for z_mergetoaddress 6 years ago
wallet_nullifiers.py Allow passing timeout parameter to wait_and_assert_operationid_status 6 years ago
wallet_overwintertx.py Add tests for expiryheight parameter of RPC createrawtransaction. 6 years ago
wallet_persistence.py https://github.com/zcash/zcash/pull/3684/files 6 years ago
wallet_protectcoinbase.py Allow passing timeout parameter to wait_and_assert_operationid_status 6 years ago
wallet_sapling.py Start creating a HushTestFramework 4 years ago
wallet_shieldcoinbase.py Add Sapling support to z_shieldcoinbase 6 years ago
wallet_shieldcoinbase_sapling.py Update test copyrights 4 years ago
wallet_treestate.py Deduplicate test utility method wait_and_assert_operationid_status 7 years ago
walletbackup.py RPC dumpwallet and z_exportwallet updated to no longer allow 7 years ago
zapwallettxes.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
zcjoinsplit.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
zcjoinsplitdoublespend.py test suite tweaks 4 years ago
zkey_import_export.py test suite tweaks 4 years ago
zmq_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 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 komodods and test.* datadir on exit or error
  --noshutdown     Don't stop komodods 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!