mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge #8827: [qa] Split up slow RPC calls to avoid pruning test timeouts
a0f8482 [qa] Split up slow RPC calls to avoid pruning test timeouts (Suhas Daftuar)
This commit is contained in:
commit
cc9e8aca5f
@ -157,7 +157,10 @@ class PruneTest(BitcoinTestFramework):
|
|||||||
print("Usage possibly still high bc of stale blocks in block files:", calc_usage(self.prunedir))
|
print("Usage possibly still high bc of stale blocks in block files:", calc_usage(self.prunedir))
|
||||||
|
|
||||||
print("Mine 220 more blocks so we have requisite history (some blocks will be big and cause pruning of previous chain)")
|
print("Mine 220 more blocks so we have requisite history (some blocks will be big and cause pruning of previous chain)")
|
||||||
self.nodes[0].generate(220) #node 0 has many large tx's in its mempool from the disconnects
|
for i in range(22):
|
||||||
|
# This can be slow, so do this in multiple RPC calls to avoid
|
||||||
|
# RPC timeouts.
|
||||||
|
self.nodes[0].generate(10) #node 0 has many large tx's in its mempool from the disconnects
|
||||||
sync_blocks(self.nodes[0:3], timeout=300)
|
sync_blocks(self.nodes[0:3], timeout=300)
|
||||||
|
|
||||||
usage = calc_usage(self.prunedir)
|
usage = calc_usage(self.prunedir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user