diff options
| author | Sebastian Falbesoner <[email protected]> | 2020-07-22 02:44:58 +0200 |
|---|---|---|
| committer | Sebastian Falbesoner <[email protected]> | 2020-08-12 22:38:09 +0200 |
| commit | 9e7894357e296dbe0be775e1527654729dbb71b0 (patch) | |
| tree | 0e880ccb899277f19d0c13828d2e291ebc37183d /src/validationinterface.cpp | |
| parent | test: use wait_until for invs matching in p2p_feefilter.py (diff) | |
| download | discoin-9e7894357e296dbe0be775e1527654729dbb71b0.tar.xz discoin-9e7894357e296dbe0be775e1527654729dbb71b0.zip | |
test: speedup p2p_feefilter.py by whitelisting peers (immediate tx relay)
Most of the test time is spent in wait_for_invs() after sending to addresses,
i.e. the bottleneck is in relaying transactions. By whitelisting the peers via
-whitelist, the inventory is transmissioned immediately rather than on average
every 5 seconds, speeding up the test significantly:
before:
$ time ./p2p_feefilter.py
...
real 0m39.367s
user 0m1.227s
sys 0m0.571s
with this commit:
$ time ./p2p_feefilter.py
...
real 0m9.386s
user 0m1.120s
sys 0m0.577s
Diffstat (limited to 'src/validationinterface.cpp')
0 files changed, 0 insertions, 0 deletions