diff options
author | John Newbery <john@johnnewbery.com> | 2019-11-01 10:21:01 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-11-04 13:20:23 -0500 |
commit | 646b593bbd0db113c6e45ab92177b8f5251e8710 (patch) | |
tree | 31ff443171ddb47b5cb49cbba0c6cfb9d3451001 /depends | |
parent | c737839471feeebdd6c4e9e29d81ed33cdbc5540 (diff) |
[tests] Speed up rpc_fundrawtransaction.py
Most of the time in rpc_fundrawtransaction.py is spent waiting for
unconfirmed transactions to propagate. Net processing adds a poisson
random delay to the time it will INV transactions with a mean interval
of 5 seconds. Calls like the following:
```
self.nodes[2].sendrawtransaction(signedTx['hex'])
self.sync_all()
self.nodes[1].generate(1)
````
will therefore introduce a delay waiting for the mempools to sync.
Instead just generate the block on the node that sent the transaction:
```
self.nodes[2].sendrawtransaction(signedTx['hex'])
self.nodes[2].generate(1)
```
rpc_fundrawtransaction.py is not intended to be a test for transaction
relay, so it's ok to do this.
Diffstat (limited to 'depends')
0 files changed, 0 insertions, 0 deletions