kouloumos
6bd098a838
test: simplify tests by using the pre-mined chain
2 years ago
fanquake
ffdab41f94
Merge bitcoin/bitcoin#23474 : test: scripted-diff cleanups after generate* changes
...
fac23c2114
scripted-diff: Bump copyright headers (MarcoFalke)
fa974f1f14
scripted-diff: Remove redundant sync_all and sync_blocks (MarcoFalke)
fad13991ae
test: Properly set sync_fun in NodeNetworkLimitedTest (MarcoFalke)
faeff57709
test: Use 4 spaces for indentation (MarcoFalke)
Pull request description:
Some cleanups after commit 94db963de5
ACKs for top commit:
fanquake:
ACK fac23c2114
Tree-SHA512: 5acfd5bb9679b41969d0fc6fc85801ccadcd6530ea692bac6352668e06fc7a9b0e1db3fd6fba435e84afe983d2eb07bd0a47c8364462bb7110004bd3d102b698
3 years ago
MarcoFalke
fa62207737
test: Return the largest utxo in MiniWallet.get_utxo
3 years ago
MarcoFalke
fac23c2114
scripted-diff: Bump copyright headers
...
The previous diff touched most files in ./test/, so bump the headers to
avoid having to touch them again for a bump later.
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
3 years ago
MarcoFalke
fa974f1f14
scripted-diff: Remove redundant sync_all and sync_blocks
...
The sync calls are redundant after a call to generate, because generate
already syncs itself.
-BEGIN VERIFY SCRIPT-
perl -0777 -pi -e 's/(generate[^\n]*\)[^\n]*)(\n|\s)+self.sync_(all|blocks)\([^\)]*\)\n/\1\n/g' $(git grep -l generate ./test)
-END VERIFY SCRIPT-
3 years ago
MarcoFalke
facc352648
test: Implicitly sync after generate*, unless opted out
3 years ago
MarcoFalke
fa0b916971
scripted-diff: Use generate* from TestFramework
...
-BEGIN VERIFY SCRIPT-
sed --regexp-extended -i \
's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \
$(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
-END VERIFY SCRIPT-
3 years ago
Sebastian Falbesoner
1914054208
scripted-diff: test: rename `FromHex` to `from_hex`
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\<FromHex\>/from_hex/g' $(git grep -l FromHex)
-END VERIFY SCRIPT-
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
3 years ago
Sebastian Falbesoner
a79396fe5f
test: remove `ToHex` helper, use .serialize().hex() instead
3 years ago
Kiminuo
bfa9309ad6
Use COINBASE_MATURITY constant in functional tests.
4 years ago
MarcoFalke
fa0074e2d8
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
4 years ago
João Barbosa
52fc39917f
rpc: Reject empty txids in gettxoutproof
4 years ago
João Barbosa
faf251d854
test: gettxoutproof duplicate txid
4 years ago
MarcoFalke
faf5eb45c4
test: Test empty array in gettxoutproof
4 years ago
MarcoFalke
fa56e866e8
test: Run rpc_txoutproof.py even with wallet disabled
4 years ago
MarcoFalke
aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
5 years ago
fanquake
b6f9e3576a
test: re-enable CLI test support by using EncodeDecimal in json.dumps()
...
As mentioned in
https://github.com/bitcoin/bitcoin/pull/17675#issuecomment-563188648
5 years ago
practicalswift
993e38a4e2
tests: Mark functional tests not supporting bitcoin-cli (--usecli) as such
5 years ago
MarcoFalke
37612099ec
Merge #13424 : Consistently validate txid / blockhash length and encoding in rpc calls
...
5eb20f81d9
Consistently use ParseHashV to validate hash inputs in rpc (Ben Woosley)
Pull request description:
ParseHashV validates the length and encoding of the string and throws
an informative RPC error on failure, which is as good or better than
these alternative calls.
Note I switched ParseHashV to check string length first, because
IsHex tests that the length is even, and an error like:
"must be of length 64 (not 63, for X)" is much more informative than
"must be hexadecimal string (not X)" in that case.
Split from #13420
Tree-SHA512: f0786b41c0d7793ff76e4b2bb35547873070bbf7561d510029e8edb93f59176277efcd4d183b3185532ea69fc0bbbf3dbe9e19362e8017007ae9d51266cd78ae
6 years ago
MarcoFalke
fac9539836
qa: Run all tests even if wallet is not compiled
6 years ago
practicalswift
68400d8b96
tests: Use explicit imports
6 years ago
Ben Woosley
5eb20f81d9
Consistently use ParseHashV to validate hash inputs in rpc
...
ParseHashV validates the length and encoding of the string and throws
an informative RPC error on failure, which is as good or better than
these alternative calls.
Note I switched ParseHashV to check string length first, because
IsHex tests that the length is even, and an error like:
"must be of length 64 (not 63, for X)" is much more informative than
"must be hexadecimal string (not X)"
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
Suhas Daftuar
d280617bf5
[qa] Add a test for merkle proof malleation
6 years ago
Andrew Chow
eefff65a4b
scripted-diff: change signrawtransaction to signrawtransactionwithwallet in tests
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\<signrawtransaction\>/signrawtransactionwithwallet/g' test/functional/*.py
sed -i 's/\<signrawtransaction\>/signrawtransactionwithwallet/g' test/functional/test_framework/*.py
-END VERIFY SCRIPT-
7 years ago
Anthony Towns
81b79f2c39
[tests] Rename rpc_* functional tests.
7 years ago