From e0a30bf8f7ee533c004040c85369cf457f12d36f Mon Sep 17 00:00:00 2001 From: nzsquirrell Date: Sun, 27 Sep 2015 17:42:32 +1300 Subject: [PATCH] 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). --- src/miner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index 439db192..d61130da 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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: