Patched copying of block headers so that auxpow is also copied. Fixes assertion crash when using SPV clients.
This commit is contained in:
parent
a7dbc0038d
commit
d9b57edc86
|
@ -473,6 +473,7 @@ public:
|
|||
block.nTime = nTime;
|
||||
block.nBits = nBits;
|
||||
block.nNonce = nNonce;
|
||||
block.auxpow = auxpow;
|
||||
return block;
|
||||
}
|
||||
|
||||
|
|
|
@ -962,6 +962,7 @@ public:
|
|||
block.nTime = nTime;
|
||||
block.nBits = nBits;
|
||||
block.nNonce = nNonce;
|
||||
// AuxPoW is not part of the hash
|
||||
return block.GetHash();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue