Trying to fix the forking issue, which is now clearly a bug in sending and receiving headers. This checkin will enable debugging and may be a fix.

This commit is contained in:
Michael Toutonghi
2018-05-15 22:19:07 -07:00
parent 32430433f3
commit 3da69a3138
3 changed files with 45 additions and 39 deletions

View File

@@ -76,7 +76,10 @@ public:
uint256 GetHash() const
{
return (this->*hashFunction)();
if (hashPrevBlock.IsNull())
return (this->GetSHA256DHash());
else
return (this->*hashFunction)();
}
uint256 GetSHA256DHash() const;