-
Notifications
You must be signed in to change notification settings - Fork 33
Fix for incorrect equihash and cryptonight block headers response #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -751,6 +751,11 @@ class CBlock : public CBlockHeader | |
| block.nTime = nTime; | ||
| block.nBits = nBits; | ||
| block.nNonce = nNonce; | ||
| block.nNonce256 = nNonce256; | ||
| block.nSolution = nSolution; | ||
| block.hashReserved = hashReserved; | ||
| block.auxpow = auxpow; | ||
|
|
||
| return block; | ||
| } | ||
|
|
||
|
|
@@ -963,6 +968,11 @@ class CBlockIndex | |
| block.nTime = nTime; | ||
| block.nBits = nBits; | ||
| block.nNonce = nNonce; | ||
| block.nNonce256 = nNonce256; | ||
| block.nSolution = nSolution; | ||
| block.hashReserved = hashReserved; | ||
|
Comment on lines
+971
to
+973
|
||
| block.auxpow = pauxpow; | ||
|
|
||
| return block; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,7 +208,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts() | |
| // Construct block index object | ||
| CBlockIndex* pindexNew = InsertBlockIndex(diskindex.GetBlockHash()); | ||
| pindexNew->pprev = InsertBlockIndex(diskindex.hashPrev); | ||
| pindexNew->pauxpow = diskindex.pauxpow; | ||
| pindexNew->pauxpow = diskindex.pauxpow; | ||
| pindexNew->nHeight = diskindex.nHeight; | ||
| pindexNew->nMoneySupply = diskindex.nMoneySupply; | ||
| pindexNew->nFile = diskindex.nFile; | ||
|
|
@@ -221,6 +221,9 @@ bool CBlockTreeDB::LoadBlockIndexGuts() | |
| pindexNew->nNonce = diskindex.nNonce; | ||
| pindexNew->nStatus = diskindex.nStatus; | ||
| pindexNew->nTx = diskindex.nTx; | ||
| pindexNew->nNonce256 = diskindex.nNonce256; | ||
| pindexNew->nSolution = diskindex.nSolution; | ||
| pindexNew->hashReserved = diskindex.hashReserved; | ||
|
Comment on lines
+224
to
+226
|
||
|
|
||
| if (!pindexNew->CheckIndex()) | ||
| return error("LoadBlockIndex() : CheckIndex failed: %s", pindexNew->ToString()); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent whitespace: These lines use tabs while the surrounding code uses spaces for indentation. The whitespace should match the existing code style.