diff --git a/src/miner.cpp b/src/miner.cpp index ba5922f45..ae0c5839c 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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()); } }