This commit is contained in:
jl777
2016-10-29 17:34:15 -03:00
parent f2ab07e151
commit f8e4269d8f

View File

@@ -440,12 +440,11 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
CPubKey pubkey; CScript scriptPubKey; CPubKey pubkey; CScript scriptPubKey;
if (!reservekey.GetReservedKey(pubkey)) if (!reservekey.GetReservedKey(pubkey))
return NULL; return NULL;
scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
if ( USE_EXTERNAL_PUBKEY != 0 ) if ( USE_EXTERNAL_PUBKEY != 0 )
{ {
//fprintf(stderr,"use notary pubkey\n"); //fprintf(stderr,"use notary pubkey\n");
scriptPubKey = CScript() << ParseHex(NOTARY_PUBKEY) << OP_CHECKSIG; scriptPubKey = CScript() << ParseHex(NOTARY_PUBKEY) << OP_CHECKSIG;
} } else scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
return CreateNewBlock(scriptPubKey); return CreateNewBlock(scriptPubKey);
} }