- ECAFBDF451A63BE8EA30BA33B93F62A155511051154AF8369284519E6F493D2B3546FF2D3E7F7A3EC263F50A2080DA9665B24DCE3AEBB4CD54B92ACB12F37024
+ 00BAE14F70F53E0826F7F23453A48E59CA34FDE46DE507482224965AD465ACAB0C913141E1EA21323C4F5461035B8B4D3AC9B11AA9C16FDEA000640145B89FD1
bitcoin/src/main.h
(222 . 7)(222 . 7)
287
288 std::string ToString() const
289 {
290 return strprintf("COutPoint(%s, %d)", hash.ToString().substr(0,10).c_str(), n);
291 return strprintf("COutPoint(%s, %d)", hash.ToString().c_str(), n);
292 }
293
294 void print() const
(297 . 7)(297 . 7)
296 if (prevout.IsNull())
297 str += strprintf(", coinbase %s", HexStr(scriptSig).c_str());
298 else
299 str += strprintf(", scriptSig=%s", scriptSig.ToString().substr(0,24).c_str());
300 str += strprintf(", scriptSig=%s", scriptSig.ToString().c_str());
301 if (nSequence != UINT_MAX)
302 str += strprintf(", nSequence=%u", nSequence);
303 str += ")";
(371 . 7)(371 . 7)
305 {
306 if (scriptPubKey.size() < 6)
307 return "CTxOut(error)";
308 return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
309 return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().c_str());
310 }
311
312 void print() const
(608 . 7)(608 . 7)
314 {
315 std::string str;
316 str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%d, vout.size=%d, nLockTime=%d)\n",
317 GetHash().ToString().substr(0,10).c_str(),
318 GetHash().ToString().c_str(),
319 nVersion,
320 vin.size(),
321 vout.size(),
(954 . 10)(954 . 10)
323 void print() const
324 {
325 printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%d)\n",
326 GetHash().ToString().substr(0,20).c_str(),
327 GetHash().ToString().c_str(),
328 nVersion,
329 hashPrevBlock.ToString().substr(0,20).c_str(),
330 hashMerkleRoot.ToString().substr(0,10).c_str(),
331 hashPrevBlock.ToString().c_str(),
332 hashMerkleRoot.ToString().c_str(),
333 nTime, nBits, nNonce,
334 vtx.size());
335 for (int i = 0; i < vtx.size(); i++)
(967 . 7)(967 . 7)
337 }
338 printf(" vMerkleTree: ");
339 for (int i = 0; i < vMerkleTree.size(); i++)
340 printf("%s ", vMerkleTree[i].ToString().substr(0,10).c_str());
341 printf("%s ", vMerkleTree[i].ToString().c_str());
342 printf("\n");
343 }
344
(1138 . 8)(1138 . 8)
346 {
347 return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s)",
348 pprev, pnext, nFile, nBlockPos, nHeight,
349 hashMerkleRoot.ToString().substr(0,10).c_str(),
350 GetBlockHash().ToString().substr(0,20).c_str());
351 hashMerkleRoot.ToString().c_str(),
352 GetBlockHash().ToString().c_str());
353 }
354
355 void print() const
(1209 . 8)(1209 . 8)
357 str += CBlockIndex::ToString();
358 str += strprintf("\n hashBlock=%s, hashPrev=%s, hashNext=%s)",
359 GetBlockHash().ToString().c_str(),
360 hashPrev.ToString().substr(0,20).c_str(),
361 hashNext.ToString().substr(0,20).c_str());
362 hashPrev.ToString().c_str(),
363 hashNext.ToString().c_str());
364 return str;
365 }
366