Changed nprev->pprev
It should be pprev, because the next one is pnext, and it's printing the memory address of the CBlockIndex (so pSomething).
This commit is contained in:
parent
06707dd610
commit
9eb7fc5842
1 changed files with 1 additions and 1 deletions
|
@ -1174,7 +1174,7 @@ public:
|
||||||
|
|
||||||
std::string ToString() const
|
std::string ToString() const
|
||||||
{
|
{
|
||||||
return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s)",
|
return strprintf("CBlockIndex(pprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s)",
|
||||||
pprev, pnext, nFile, nBlockPos, nHeight,
|
pprev, pnext, nFile, nBlockPos, nHeight,
|
||||||
hashMerkleRoot.ToString().substr(0,10).c_str(),
|
hashMerkleRoot.ToString().substr(0,10).c_str(),
|
||||||
GetBlockHash().ToString().substr(0,20).c_str());
|
GetBlockHash().ToString().substr(0,20).c_str());
|
||||||
|
|
Loading…
Reference in a new issue