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.
 
 
 
 
 
 
Simon db026807b8 Add z_sendmany rule that when sending coinbase utxos to a zaddr 8 years ago
..
test_framework Disable metrics screen in RPC tests 8 years ago
.gitignore Python-based regression tests 10 years ago
README.md Remove bash test note from rpc-tests readme 9 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
forknotify.py [QA] restructure rpc tests directory 9 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] restructure rpc tests directory 9 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 Fix RPC tests that require wallet encryption 8 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 Update RPC tests to account for decreased block interval 8 years ago
mempool_spendcoinbase.py Update RPC tests to account for decreased block interval 8 years ago
merkle_blocks.py Update RPC tests to account for decreased block interval 8 years ago
p2p-acceptblock.py Be even stricter in processing unrequested blocks 9 years ago
proxy_test.py [QA] restructure rpc tests directory 9 years ago
pruning.py Make fee aware of min relay in pruning.py RPC test 9 years ago
rawtransactions.py Change default ports 8 years ago
receivedby.py [QA] restructure rpc tests directory 9 years ago
reindex.py [QA] restructure rpc tests directory 9 years ago
rest.py Store the Equihash solution in minimal representation in the block header 8 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 Auto merge of #1599 - daira:1597.fix-other-potential-race-conditions, r=daira 8 years ago
wallet_nullifiers.py Add z_sendmany rule that when sending coinbase utxos to a zaddr 8 years ago
wallet_protectcoinbase.py Add z_sendmany rule that when sending coinbase utxos to a zaddr 8 years ago
walletbackup.py Update RPC tests to account for decreased block interval 8 years ago
zapwallettxes.py Update RPC tests to account for decreased block interval 8 years ago
zcjoinsplit.py Rename `pour` in RPC tests. 8 years ago
zcjoinsplitdoublespend.py Rename `pour` in RPC tests. 8 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:

```bash
rm -rf cache
killall bitcoind
```