Patched copying of block headers so that auxpow is also copied. Fixes assertion crash when using SPV clients.

This commit is contained in:
Ross Nicoll 2014-08-07 20:17:23 +01:00
parent a7dbc0038d
commit d9b57edc86
No known key found for this signature in database
GPG key ID: 9142E5F7E533CE3B
2 changed files with 2 additions and 0 deletions

View file

@ -473,6 +473,7 @@ public:
block.nTime = nTime;
block.nBits = nBits;
block.nNonce = nNonce;
block.auxpow = auxpow;
return block;
}

View file

@ -962,6 +962,7 @@ public:
block.nTime = nTime;
block.nBits = nBits;
block.nNonce = nNonce;
// AuxPoW is not part of the hash
return block.GetHash();
}