message: [Tests] Fix wallet_upgrade
  generating a block calls TopUp which now returns true on non-HD wallets
  too. the pre_split keypool has 1 key more.
diff: @@ -76,7 +76,7 @@ class WalletUpgradeTest (PivxTestFramework):
  self.setup_clean_chain = True
  self.num_nodes = 1
  - def check_keys(self, addrs):
  + def check_keys(self, addrs, mined_blocks = 0):
  self.log.info("Checking old keys existence in the upgraded wallet..")
  # Now check that all of the pre upgrade addresses are still in the wallet
  for addr in addrs:
  @@ -87,7 +87,7 @@ class WalletUpgradeTest (PivxTestFramework):
  self.log.info("All pre-upgrade keys found in the wallet :)")
  # Use all of the keys in the pre-HD keypool
  - for _ in range(0, 60):
  + for _ in range(0, 60 + mined_blocks):
  self.nodes[0].getnewaddress()
  self.log.info("All pre-upgrade keys should have been marked as used by now, creating new HD keys")
  @@ -143,7 +143,7 @@ class WalletUpgradeTest (PivxTestFramework):
  self.log.info("upgrade completed, checking keys now..")
  # Now check if the upgrade went fine
  - self.check_keys(addrs)
  + self.check_keys(addrs, 1)
  self.log.info("Upgrade via RPC completed, all good :)")
  