message: Fix witness merkleroot (issue 50)
diff: @@ -180,8 +180,6 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
  coinbaseTx.vout[0].nValue = nFees + GetBlockSubsidy(nHeight, chainparams.GetConsensus());
  coinbaseTx.vin[0].scriptSig = CScript() << nHeight << OP_0;
  pblock->vtx[0] = MakeTransactionRef(std::move(coinbaseTx));
  - pblocktemplate->vchCoinbaseCommitment = GenerateCoinbaseCommitment(*pblock, pindexPrev, chainparams.GetConsensus());
  - pblocktemplate->vTxFees[0] = -nFees;
  //////////////////////////////////////////////////////// qtum
  dev::h256 oldHashStateRoot(globalState->rootHash());
  @@ -199,6 +197,9 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
  pblock->vtx[0] = MakeTransactionRef(std::move(coinbaseTxNew));
  ////////////////////////////////////////////////////////
  + pblocktemplate->vchCoinbaseCommitment = GenerateCoinbaseCommitment(*pblock, pindexPrev, chainparams.GetConsensus());
  + pblocktemplate->vTxFees[0] = -nFees;
  +
  uint64_t nSerializeSize = GetSerializeSize(*pblock, SER_NETWORK, PROTOCOL_VERSION);
  LogPrintf("CreateNewBlock(): total size: %u block weight: %u txs: %u fees: %ld sigops %d\n", nSerializeSize, GetBlockWeight(*pblock), nBlockTx, nFees, nBlockSigOpsCost);
  