Use HASH160 instead of public key for coinbase transaction
authoralex <alex@alex-VirtualBox.(none)>
Sat, 28 Sep 2013 13:58:23 +0000 (17:58 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Sat, 28 Sep 2013 13:58:23 +0000 (17:58 +0400)
src/miner.cpp

index 5ae487c..bdae5c7 100644 (file)
@@ -125,7 +125,7 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake)
     if (!fProofOfStake)
     {
         CReserveKey reservekey(pwallet);
-        txNew.vout[0].scriptPubKey << reservekey.GetReservedKey() << OP_CHECKSIG;
+        txNew.vout[0].scriptPubKey.SetDestination(reservekey.GetReservedKey().GetID());
     }
     else
         txNew.vout[0].SetEmpty();