mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
test: Implicitly sync after generate*, unless opted out
This commit is contained in:
@@ -228,7 +228,7 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||
res9 = index_node.gettxoutsetinfo('muhash')
|
||||
assert_equal(res8, res9)
|
||||
|
||||
self.generate(index_node, 1)
|
||||
self.generate(index_node, 1, sync_fun=self.no_op)
|
||||
res10 = index_node.gettxoutsetinfo('muhash')
|
||||
assert(res8['txouts'] < res10['txouts'])
|
||||
|
||||
@@ -254,7 +254,7 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||
assert_equal(index_node.gettxoutsetinfo('muhash')['height'], 110)
|
||||
|
||||
# Add two new blocks
|
||||
block = self.generate(index_node, 2)[1]
|
||||
block = self.generate(index_node, 2, sync_fun=self.no_op)[1]
|
||||
res = index_node.gettxoutsetinfo(hash_type='muhash', hash_or_height=None, use_index=False)
|
||||
|
||||
# Test that the result of the reorged block is not returned for its old block height
|
||||
|
||||
Reference in New Issue
Block a user