test
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user