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.
 
 
 
 
 
 
Wladimir J. van der Laan f3e1770cfb
tests: Disable Tor interaction
9 years ago
..
test_framework tests: Disable Tor interaction 7 years ago
.gitignore Python-based regression tests 10 years ago
README.md Add paytxfee to getwalletinfo, warnings to getnetworkinfo 7 years ago
bip65-cltv-p2p.py Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork 9 years ago
bip65-cltv.py Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork 9 years ago
bipdersig-p2p.py [QA] restructure rpc tests directory 9 years ago
bipdersig.py [QA] restructure rpc tests directory 9 years ago
decodescript.py add tests for the decodescript rpc. add mention of the rpc regression tests to the testing seciton of the main readme. 7 years ago
disablewallet.py Re-encode t-addrs in disablewallet.py with Zcash prefixes 7 years ago
forknotify.py [QA] restructure rpc tests directory 9 years ago
fundrawtransaction.py Adjust fundrawtransaction RPC test for Zcash 7 years ago
getblocktemplate.py Fix RPC test 8 years ago
getblocktemplate_longpoll.py [QA] restructure rpc tests directory 9 years ago
getblocktemplate_proposals.py GBT: Correct block header in proposals RPC test 8 years ago
getchaintips.py [QA] restructure rpc tests directory 9 years ago
hardforkdetection.py Enable -alertnotify for hard fork detection. Test it. 8 years ago
httpbasics.py qa: Remove -rpckeepalive tests from httpbasics 7 years ago
invalidateblock.py [QA] restructure rpc tests directory 9 years ago
invalidblockrequest.py Fix (most) rpc tests by updating balances. zcpour, zcpourdoublespend, and txn_doublespend currently fail. 8 years ago
keypool.py Require -experimentalmode for wallet encryption 7 years ago
listtransactions.py Fix RPC tests to not rely on accounts. 8 years ago
maxblocksinflight.py [QA] restructure rpc tests directory 9 years ago
mempool_coinbase_spends.py Update RPC tests to account for decreased block interval 8 years ago
mempool_resurrect_test.py Part of #1969. Update tests to avoid error 'absurdly high fee' from change in min fee calc. 7 years ago
mempool_spendcoinbase.py Add tests for getmempoolinfo 7 years ago
merkle_blocks.py Update RPC tests to account for decreased block interval 8 years ago
nodehandling.py add RPC tests for setban & disconnectnode 7 years ago
p2p-acceptblock.py Be even stricter in processing unrequested blocks 9 years ago
prioritisetransaction.py Inc num of txs in test mempool 7 years ago
proxy_test.py tests: Extend RPC proxy tests 7 years ago
pruning.py Make fee aware of min relay in pruning.py RPC test 9 years ago
rawtransactions.py Part of #1969. Update tests to avoid error 'absurdly high fee' from change in min fee calc. 7 years ago
receivedby.py [QA] restructure rpc tests directory 9 years ago
reindex.py [QA] restructure rpc tests directory 9 years ago
rest.py tests: GET requests cannot have request body, use POST in rest.py 7 years ago
rpcbind_test.py rpc-tests: remove python-bitcoinrpc directory 9 years ago
script_test.py [QA] restructure rpc tests directory 9 years ago
signrawtransactions.py Repair rpc-tests/signrawtransactions.py. 8 years ago
smartfees.py [QA] restructure rpc tests directory 9 years ago
txn_doublespend.py Cosmetics in RPC tests. 8 years ago
wallet.py [QA] add testcases for parsing strings as values 7 years ago
wallet_1941.py Test boolean fallback in z_importkey 7 years ago
wallet_nullifiers.py Require -experimentalmode for wallet encryption 7 years ago
wallet_protectcoinbase.py Part of #1969. Changing min fee calculation also changes the dust threshold. 7 years ago
wallet_treestate.py Fixes #1823. Witness anchors for input notes no longer cross block boundaries. 8 years ago
walletbackup.py Update walletbackup.py qa test to use -exportdir option 7 years ago
zapwallettxes.py Update RPC tests to account for decreased block interval 8 years ago
zcjoinsplit.py Part of #1969. Update tests to avoid error 'absurdly high fee' from change in min fee calc. 7 years ago
zcjoinsplitdoublespend.py Part of #1969. Update tests to avoid error 'absurdly high fee' from change in min fee calc. 7 years ago
zmq_test.py [ZMQ] append a message sequence number to every ZMQ notification 7 years ago

README.md

Regression tests of RPC interface

python-bitcoinrpc

Git subtree of https://github.com/jgarzik/python-bitcoinrpc. Changes to python-bitcoinrpc should be made upstream, and then pulled here using git subtree.

test_framework/test_framework.py

Base class for new 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 bitcoinds and test.* datadir on exit or error
  --noshutdown     Don't stop bitcoinds after the test execution
  --srcdir=SRCDIR  Source directory containing bitcoind/bitcoin-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 25 mature blocks (25*50=1250 BTC) 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 bitcoind