Wladimir J. van der Laan
1d28faf9e9
test: Avoid ConnectionResetErrors during RPC tests
...
This is necessary on FreeBSD and MacOSX, at least.
See https://github.com/bitcoin/bitcoin/pull/8834#issuecomment-250450213
8 years ago
MarcoFalke
fa156c604e
[qa] nulldummy: Don't run unused code
8 years ago
Suhas Daftuar
a0f8482f3e
[qa] Split up slow RPC calls to avoid pruning test timeouts
8 years ago
Wladimir J. van der Laan
42f6aed731
tests: Add exception error message for JSONRPCException
...
This improves error reporting if `JSONRPCException` is not specifically caught
and ends up in Python's default backtrace handler.
Before:
```
Traceback (most recent call last):
File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 153, in __call__
raise JSONRPCException(response['error'])
test_framework.authproxy.JSONRPCException
```
After:
```
Traceback (most recent call last):
File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 152, in __call__
raise JSONRPCException(response['error'])
test_framework.authproxy.JSONRPCException: Unknown named parameter random (-8)
```
8 years ago
Johnson Lau
0637b02fce
Ping regularly in p2p-segwit.py to keep connection alive
...
This pings regularly while building a big block in p2p-segwit.py, to prevent timeout
8 years ago
MarcoFalke
fa6e71b27d
[qa] Add getinfo smoke tests and rework versionbits test
8 years ago
MarcoFalke
ddddaafa4a
[rpc] Deprecate getinfo
...
This was replaced by getmininginfo, getnetworkinfo and getwalletinfo
8 years ago
Suhas Daftuar
157254a4bf
Fix broken sendcmpct test in p2p-compactblocks.py
...
Python lambda use was incorrect.
sendcmpct messages need to be synchronized with RPC calls to generate().
Headers need to be synced (eg with getheaders) for cmpctblock announcements
to start.
Last test omitted sending a sendcmpct message.
8 years ago
MarcoFalke
fad41f308f
[qa] walletbackup: Sync blocks inside the loop
8 years ago
MarcoFalke
fa644d0053
[qa] wallet: Check legacy wallet as well
8 years ago
MarcoFalke
fa27d990ee
[qa] create_cache: Delete temp dir when done
8 years ago
isle2983
783e930e68
[copyright] Add missing copyright headers
8 years ago
Cory Fields
d6a5dc4a2e
add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for tests
...
waitfornewblock waits until a new block is received, or the timeout expires, then
returns the current block height/hash.
waitforblock waits for a specific blockhash, or until the timeout expires, then
returns the current block height/hash. If the target blockhash is the current
tip, it will return immediately.
waitforblockheight waits until the tip has reached a certain height or higher,
then returns the current height and hash.
waitforblockheight is used to avoid polling in the rpc tests.
8 years ago
Johnson Lau
2f2548d5e0
Fix SIGHASH_SINGLE bug in test_framework SignatureHash
...
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
8 years ago
instagibbs
ca10a03add
Add basic test for IsStandard witness transaction blinding
8 years ago
whythat
c62cc4ec75
fix path for bak file
8 years ago
whythat
438e94dc33
remove root test directory for RPC tests
8 years ago
djpnewton
f012a857f5
rest.cpp: change HTTP_INTERNAL_SERVER_ERROR to HTTP_BAD_REQUEST
8 years ago
Johnson Lau
482f852da6
Implement NULLDUMMY softfork
8 years ago
MarcoFalke
fab5ecb771
[wallet] rpc: Drop misleading option
8 years ago
MarcoFalke
faaec1377c
[qa] Remove unused code
8 years ago
instagibbs
5547aeb015
p2psegwit.py transaction is rejected due to premature witness not size
8 years ago
Wladimir J. van der Laan
35f64e45c2
Revert "[qa] Adjust timeouts for micro-optimization of run time"
...
This reverts commit fa2d68f79c
.
Temporary revert - see discussion in #8532 .
8 years ago
MarcoFalke
fa64306520
[qa] abandonconflict: Use assert_equal
8 years ago
instagibbs
bc1d1f2660
Update p2p-segwit.py to reflect correct AskFor behavior
8 years ago
Wladimir J. van der Laan
c1582d5d85
qa: Remove duplicate `hash160` implementation
...
`hash160` is defined in `test_framework.script`, so there is no need
to define it here again.
8 years ago
Luke Dashjr
239cbd2e5c
qa/rpc-tests/segwit: Test GBT sigops before and after activation
8 years ago
Patrick Strateman
25400c4de1
Account wallet feature RPC tests.
8 years ago
MarcoFalke
fad8cf63e5
[qa] Use single cache dir for chains
8 years ago
MarcoFalke
fa2d68f79c
[qa] Adjust timeouts for micro-optimization of run time
8 years ago
Suhas Daftuar
2c517b3928
Fix p2p-feefilter.py for changed tx relay behavior
8 years ago
MarcoFalke
fa4439d355
[qa] Rework hd wallet dump test
8 years ago
Suhas Daftuar
45c7ddd109
Add p2p test for BIP 152 (compact blocks)
8 years ago
Suhas Daftuar
9a22a6c089
Add support for compactblocks to mininode
8 years ago
Suhas Daftuar
a8689fdf8e
Tests: refactor compact size serialization in mininode
8 years ago
Pieter Wuille
9c8593d2b4
Implement SipHash in Python
8 years ago
Jonas Schnelli
54af51d98d
[QA] Add walletdump RPC test (including HD- & encryption-tests)
8 years ago
Jonas Schnelli
2266b43e33
Port from 0.13: Create a new HD seed after encrypting the wallet
...
Forward-ports two commits from 0.13:
- [0.13] Create a new HD seed after encrypting the wallet
- [Wallet] Add CKeyMetadata record for HDMasterKey(s), factor out HD key generation
Github-Pull: #8389
Rebased-From: f142c11ac6
de45c065f0
8 years ago
whythat
9bbb414b80
[qa]: enable rpcbind_test
8 years ago
whythat
0ff4375c93
[qa]: add parsing for '<host>:<port>' argument form to rpc_url()
8 years ago
NicolasDorier
122786d0e0
Consensus: Remove ISM
8 years ago
Suhas Daftuar
c59c434b7d
qa: Add test for standardness of segwit v0 outputs
8 years ago
Jonas Schnelli
b50e1ac298
[Wallet] Correct hdmasterkeyid/masterkeyid name confusion
8 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
8 years ago
MarcoFalke
fae596f0e4
[qa] Sort scripts by time for pull_tester and don't overwrite setup_chain
8 years ago
Jonas Schnelli
7945088d41
[Wallet] comsetic non-code changes for the HD feature
8 years ago
MarcoFalke
66668c420a
[qa] Solve merge conflict of 4324bd237c
8 years ago
Suhas Daftuar
e91cf4b210
Add test for handling of unconnecting headers
8 years ago
Jonas Schnelli
f70808596f
[QA] extend wallet-hd test to cover HD metadata
8 years ago
Suhas Daftuar
46c9620f11
Test that unnecessary witnesses can't be used for mempool DoS
...
Check that pre-segwit activation, unnecessary witnesses won't cause
a txid to be permanently rejected.
8 years ago