message: Add sync_all to getblocktemplate_longpoll.py
  With PV we need to be more careful about syncing python regression
  tests after mining blocks.
diff: @@ -30,6 +30,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
  def run_test(self):
  print("Warning: this test will take about 70 seconds in the best case. Be patient.")
  self.nodes[0].generate(10)
  + self.sync_all()
  templat = self.nodes[0].getblocktemplate()
  longpollid = templat['longpollid']
  # longpollid should not change between successive invocations if nothing else happens
  