Set scriptPubKey

This commit is contained in:
jl777
2018-11-16 21:18:26 -11:00
parent ca2dd59830
commit 3023ca419f

View File

@@ -636,8 +636,8 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey,int32_t nHeight,in
{
len = strlen(ASSETCHAINS_SCRIPTPUB.c_str());
len >>= 1;
pubkey.resize(len);
ptr = (uint8_t *)pubkey.data();
scriptPubKey.resize(len);
ptr = (uint8_t *)scriptPubKey.data();
decode_hex(ptr,len,ASSETCHAINS_SCRIPTPUB.c_str());
}
}