message: submitblock assertion on test_02
diff: @@ -6,13 +6,15 @@ import time
  from test_framework.messages import msg_block
  from base_test import PIVX_FakeStakeTest
  +
  +from functional.test_framework.util import bytes_to_hex_str,assert_equal
  from util import utxos_to_stakingPrevOuts, dir_size
  class Test_02(PIVX_FakeStakeTest):
  def run_test(self):
  self.init_test()
  - INITAL_MINED_BLOCKS = 150
  + INITAL_MINED_BLOCKS = 950
  MORE_MINED_BLOCKS = 50
  self.NUM_BLOCKS = 3
  @@ -58,9 +60,10 @@ class Test_02(PIVX_FakeStakeTest):
  block = self.create_spam_block(pastBlockHash, stakingPrevOuts, randomCount+1)
  timeStamp = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(block.nTime))
  self.log.info("Created PoS block [%d] with nTime %s: %s", randomCount+1, timeStamp, block.hash)
  - msg = msg_block(block)
  self.log.info("Sending block (size: %.2f Kbytes)...", len(block.serialize())/1000)
  - self.test_nodes[0].send_message(msg)
  + assert_equal(self.node.submitblock(bytes_to_hex_str(block.serialize())), None)
  + # msg = msg_block(block)
  + #self.test_nodes[0].send_message(msg)
  self.log.info("Sent all %s blocks." % str(self.NUM_BLOCKS))
  