From 3023ca419f895b35a6ce129051c4ec58bee5f53b Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 16 Nov 2018 21:18:26 -1100 Subject: [PATCH] Set scriptPubKey --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } }