Say which height we are at when we get an assertion from GetBlockHash

This commit is contained in:
Duke
2023-04-19 11:01:20 -04:00
parent f8939d2fd9
commit 513ebc5bb4

View File

@@ -512,7 +512,10 @@ public:
uint256 GetBlockHash() const
{
assert(phashBlock);
if(phashBlock == NULL) {
fprintf(stderr, "GetBlockHash: phashBlock NULL at height %d\n", this->GetHeight());
assert(phashBlock);
}
return *phashBlock;
}