Browse Source

fix getblocktemplate for PoW while staking

pull/27/head
blackjok3r 5 years ago
parent
commit
304de9777d
  1. 2
      src/rpc/mining.cpp

2
src/rpc/mining.cpp

@ -717,7 +717,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
}
#ifdef ENABLE_WALLET
CReserveKey reservekey(pwalletMain);
pblocktemplate = CreateNewBlockWithKey(reservekey,chainActive.LastTip()->GetHeight()+1,KOMODO_MAXGPUCOUNT);
pblocktemplate = CreateNewBlockWithKey(reservekey,chainActive.LastTip()->GetHeight()+1,KOMODO_MAXGPUCOUNT,false);
#else
pblocktemplate = CreateNewBlockWithKey();
#endif

Loading…
Cancel
Save