Sebastian Falbesoner
df5d783aef
test: refactor: take use of create_block
txlist parameter
...
Passing a list of transactions `txlist` to `create_block` appends
them to the block, hence we don't need to do that manually anymore.
The merkle root calculation can also be removed, since this is done
in the end of the helper.
2021-11-17 15:45:30 +01:00
Sebastian Falbesoner
ae9df4ef93
test: refactor: take use of create_block
version parameter (or use default)
2021-11-17 15:44:09 +01:00
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
2021-11-16 11:22:06 +08:00
Sebastian Falbesoner
a9872e1478
test: remove unnecessary block rehashing prior to solving
...
Solving a block involves continously rehashing it, i.e. any extra
calls to rehash it before are not necessary and can be dropped.
2021-11-12 18:29:43 +01:00
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-
2021-11-10 11:10:24 +01:00
Kiminuo
bfa9309ad6
Use COINBASE_MATURITY constant in functional tests.
2021-05-31 07:32:28 +02:00
MarcoFalke
fa0a4d6c60
test: remove assert_blockchain_height
2021-02-08 16:56:46 +01:00
Bruno Garcia
0d39b5848a
test: fix timeout decrease in feature_assumevalid
2021-02-04 21:43:43 -02:00
John Newbery
85165d4332
scripted-diff: Rename mininode to p2p
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\.mininode/\.p2p/g' $(git grep -l "mininode")
git mv test/functional/test_framework/mininode.py test/functional/test_framework/p2p.py
-END VERIFY SCRIPT-
2020-08-21 15:52:20 +01:00
Sebastian Falbesoner
dac7a111bd
refactor: test: use _ variable for unused loop counters
...
substitutes "for x in range(N):" by "for _ in range(N):"
indicates to the reader that a block is just repeated N times, and
that the loop counter is not used in the body
2020-08-06 18:39:33 +02:00
MarcoFalke
fa488f131f
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-04-16 13:33:09 -04:00
MarcoFalke
fa9b3040e7
test: Bump rpc timeout in feature_assumevalid to avoid valgrind timeouts
2020-03-11 13:37:17 -04:00
MarcoFalke
fa502cb6f0
test: Bump timeouts in slow running tests
2019-09-16 13:32:13 -04:00
Ben Woosley
68f546635d
test: Fix “local variable 'e' is assigned to but never used”
...
flake8 F841 lints, as of flake8 3.6.0
2019-07-31 16:12:12 -04:00
Pieter Wuille
8c7b9324ca
Pure python EC
...
This removes the dependency on OpenSSL for the interaction tests, by providing a pure-Python
toy implementation of secp256k1.
2019-04-18 11:58:32 -07:00
MarcoFalke
faa7cdf764
scripted-diff: Update copyright in ./test
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
2019-03-02 10:58:35 -05:00
MarcoFalke
fa852f0e8d
test: Bump timeout on tests that timeout on windows
2019-02-28 18:35:09 -05:00
Graham Krizek
b6f0db69a9
Increase timeout of featuer_assumevalid test to fix flaky tests
2018-12-28 08:28:38 -06:00
MarcoFalke
8ac7125d59
Merge #13916 : qa: wait_for_verack by default
...
fa5587fe71
qa: wait_for_verack by default (MarcoFalke)
Pull request description:
This removes the need to do so manually every time a connection is added.
Tree-SHA512: a46c92cb4df41e30778b42b9fd3dcbd8d2d82aa7503d1213cb1c1165034f648d8caee01c292e2d87d05b0f71696996eef5be8a753f35ab49e5f66b0e3bf29f21
2018-08-09 08:07:28 -04:00
MarcoFalke
fa5587fe71
qa: wait_for_verack by default
2018-08-08 17:22:35 -04:00
DrahtBot
eb7daf4d60
Update copyright headers to 2018
2018-07-27 07:15:02 -04:00
MarcoFalke
fa87da2f17
qa: Avoid start/stop of the network thread mid-test
2018-06-25 14:06:41 -04:00
MarcoFalke
fa1eac9cdb
[qa] mininode: Expose connection state through is_connected
2018-06-22 12:00:00 -04:00
Anthony Towns
ca6523d0c8
[tests] Rename feature_* functional tests.
2018-01-25 09:44:29 +10:00