Remove unnecessary and forever-blocking wait_to_sync calls

This commit is contained in:
Alexander Block 2019-06-21 14:34:26 +02:00
parent c77c4330c7
commit a05d163036
3 changed files with 0 additions and 3 deletions

View File

@ -74,7 +74,6 @@ class BIP9SoftForksTest(ComparisonTestFramework):
return info['bip9_softforks'][key] return info['bip9_softforks'][key]
def test_BIP(self, bipName, activated_version, invalidate, invalidatePostSignature, bitno): def test_BIP(self, bipName, activated_version, invalidate, invalidatePostSignature, bitno):
wait_to_sync(self.nodes[0])
assert_equal(self.get_bip9_status(bipName)['status'], 'defined') assert_equal(self.get_bip9_status(bipName)['status'], 'defined')
assert_equal(self.get_bip9_status(bipName)['since'], 0) assert_equal(self.get_bip9_status(bipName)['since'], 0)
# generate some coins for later # generate some coins for later

View File

@ -30,7 +30,6 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
def run_test(self): def run_test(self):
self.log.info("Warning: this test will take about 70 seconds in the best case. Be patient.") self.log.info("Warning: this test will take about 70 seconds in the best case. Be patient.")
wait_to_sync(self.nodes[0])
self.nodes[0].generate(10) self.nodes[0].generate(10)
templat = self.nodes[0].getblocktemplate() templat = self.nodes[0].getblocktemplate()
longpollid = templat['longpollid'] longpollid = templat['longpollid']

View File

@ -75,7 +75,6 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
def run_test(self): def run_test(self):
node = self.nodes[0] node = self.nodes[0]
wait_to_sync(node)
node.generate(1) # Mine a block to leave initial block download node.generate(1) # Mine a block to leave initial block download
tmpl = node.getblocktemplate() tmpl = node.getblocktemplate()
if 'coinbasetxn' not in tmpl: if 'coinbasetxn' not in tmpl: