message: [Tests] fix solve_stake nTime / nStakeModifier
diff: @@ -95,6 +95,14 @@ def ser_uint256(u):
  return rs
  +def ser_uint64(u):
  + rs = b""
  + for i in range(2):
  + rs += struct.pack("<I", u & 0xFFFFFFFF)
  + u >>= 32
  + return rs
  +
  +
  def uint256_from_str(s):
  r = 0
  t = struct.unpack("<IIIIIIII", s[:32])
  @@ -468,7 +476,7 @@ class CBlockHeader():
  nvalue, txBlockTime = prevouts[prevout]
  target = int(target0 * nvalue / 100) % 2**256
  data = b""
  - data += ser_uint256(stakeModifier)
  + data += ser_uint64(stakeModifier)
  data += struct.pack("<I", txBlockTime)
  # prevout for zPoS is serial hashes hex strings
  if isinstance(prevout, str):
  @@ -481,6 +489,7 @@ class CBlockHeader():
  self.prevoutStake = prevout
  loop = False
  break
  + if loop:
  self.nTime += 1
  return True
  