From d9b57edc86f7735134a30e14c6b500cde96e65ce Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Thu, 7 Aug 2014 20:17:23 +0100 Subject: [PATCH] Patched copying of block headers so that auxpow is also copied. Fixes assertion crash when using SPV clients. --- src/core.h | 1 + src/main.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core.h b/src/core.h index 9aaedfeaf..ed3007b14 100644 --- a/src/core.h +++ b/src/core.h @@ -473,6 +473,7 @@ public: block.nTime = nTime; block.nBits = nBits; block.nNonce = nNonce; + block.auxpow = auxpow; return block; } diff --git a/src/main.h b/src/main.h index a26e261e8..cd512846e 100644 --- a/src/main.h +++ b/src/main.h @@ -962,6 +962,7 @@ public: block.nTime = nTime; block.nBits = nBits; block.nNonce = nNonce; + // AuxPoW is not part of the hash return block.GetHash(); }