Skip to content

Commit

Permalink
Fix for AuxPow mining. Ensures that our chain ID is presented to geta…
Browse files Browse the repository at this point in the history
…uxblock

RPC calls. Was being set to 0 due to using default block version (2).
  • Loading branch information
nzsquirrell committed Sep 27, 2015
1 parent b840dfc commit e0a30bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e0a30bf

Please sign in to comment.