aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-11-18 19:19:41 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-11-18 19:19:41 +0000
commite4db374421cac4c6fd0d9f9b337d9073e5207c21 (patch)
treebfbb16bc8fbcb4911a24a5e32f9f4c3c280f392c /main.h
parent01fe1d2137d5e0a1d38f4c3be241b69ceccc578c (diff)
downloadbitcoin-e4db374421cac4c6fd0d9f9b337d9073e5207c21.tar.xz
bugfix Db::open/close and zombie sockets bugs fix double-close of socket handle,
keep databases open, close db cursors, initial block download in batches of 500 blocks, fix misc warnings, subver linux-test8
Diffstat (limited to 'main.h')
-rw-r--r--main.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.h b/main.h
index 8bb1e19e8a..79f14c6861 100644
--- a/main.h
+++ b/main.h
@@ -1009,9 +1009,9 @@ public:
void print() const
{
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%d)\n",
- GetHash().ToString().substr(0,14).c_str(),
+ GetHash().ToString().substr(0,16).c_str(),
nVersion,
- hashPrevBlock.ToString().substr(0,14).c_str(),
+ hashPrevBlock.ToString().substr(0,16).c_str(),
hashMerkleRoot.ToString().substr(0,6).c_str(),
nTime, nBits, nNonce,
vtx.size());
@@ -1159,7 +1159,7 @@ public:
return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s)",
pprev, pnext, nFile, nBlockPos, nHeight,
hashMerkleRoot.ToString().substr(0,6).c_str(),
- GetBlockHash().ToString().substr(0,14).c_str());
+ GetBlockHash().ToString().substr(0,16).c_str());
}
void print() const
@@ -1229,8 +1229,8 @@ public:
str += CBlockIndex::ToString();
str += strprintf("\n hashBlock=%s, hashPrev=%s, hashNext=%s)",
GetBlockHash().ToString().c_str(),
- hashPrev.ToString().substr(0,14).c_str(),
- hashNext.ToString().substr(0,14).c_str());
+ hashPrev.ToString().substr(0,16).c_str(),
+ hashNext.ToString().substr(0,16).c_str());
return str;
}