Fix for AuxPow mining. Ensures that our chain ID is presented to getauxblock

RPC calls. Was being set to 0 due to using default block version (2).
This commit is contained in:
nzsquirrell
2015-09-27 17:42:32 +13:00
parent b840dfc543
commit e0a30bf8f7
+3 -1
View File
@@ -114,7 +114,9 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, int algo)
CBlock *pblock = &pblocktemplate->block; // pointer for convenience
// Set block version
pblock->nVersion = BLOCK_VERSION_DEFAULT;
// pblock->nVersion = BLOCK_VERSION_DEFAULT;
// Don't do this now or CHAIN_ID is set to 0
switch (algo)
{
case ALGO_SHA256D: