- FF2BF8F8147DD8DF5E1EF1BCEA9B0159D3F83C1E30BEFEF56415B99305AA99161AC1C05EFB48BE87A383FFB6D621FD3761BFB3E4952CA244A6E1398CA3C71DC6
+ F15F152D522655F2A02A5FA4C5189D0D6D0FD4608370380D071D4BDB5B90F67F28FDC4FE43403A01FB42BF86271D656893482E09AD1E88155875748730B09BC5
bitcoin/src/main.h
(222 . 7)(222 . 7)
250
251 std::string ToString() const
252 {
253 return strprintf("COutPoint(%s, %d)", hash.ToString().substr(0,10).c_str(), n);
254 return strprintf("COutPoint(%s, %d)", hash.ToString().c_str(), n);
255 }
256
257 void print() const
(297 . 7)(297 . 7)
259 if (prevout.IsNull())
260 str += strprintf(", coinbase %s", HexStr(scriptSig).c_str());
261 else
262 str += strprintf(", scriptSig=%s", scriptSig.ToString().substr(0,24).c_str());
263 str += strprintf(", scriptSig=%s", scriptSig.ToString().c_str());
264 if (nSequence != UINT_MAX)
265 str += strprintf(", nSequence=%u", nSequence);
266 str += ")";
(371 . 7)(371 . 7)
268 {
269 if (scriptPubKey.size() < 6)
270 return "CTxOut(error)";
271 return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
272 return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().c_str());
273 }
274
275 void print() const
(608 . 7)(608 . 7)
277 {
278 std::string str;
279 str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%d, vout.size=%d, nLockTime=%d)\n",
280 GetHash().ToString().substr(0,10).c_str(),
281 GetHash().ToString().c_str(),
282 nVersion,
283 vin.size(),
284 vout.size(),
(954 . 10)(954 . 10)
286 void print() const
287 {
288 printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%d)\n",
289 GetHash().ToString().substr(0,20).c_str(),
290 GetHash().ToString().c_str(),
291 nVersion,
292 hashPrevBlock.ToString().substr(0,20).c_str(),
293 hashMerkleRoot.ToString().substr(0,10).c_str(),
294 hashPrevBlock.ToString().c_str(),
295 hashMerkleRoot.ToString().c_str(),
296 nTime, nBits, nNonce,
297 vtx.size());
298 for (int i = 0; i < vtx.size(); i++)
(967 . 7)(967 . 7)
300 }
301 printf(" vMerkleTree: ");
302 for (int i = 0; i < vMerkleTree.size(); i++)
303 printf("%s ", vMerkleTree[i].ToString().substr(0,10).c_str());
304 printf("%s ", vMerkleTree[i].ToString().c_str());
305 printf("\n");
306 }
307
(1138 . 8)(1138 . 8)
309 {
310 return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s)",
311 pprev, pnext, nFile, nBlockPos, nHeight,
312 hashMerkleRoot.ToString().substr(0,10).c_str(),
313 GetBlockHash().ToString().substr(0,20).c_str());
314 hashMerkleRoot.ToString().c_str(),
315 GetBlockHash().ToString().c_str());
316 }
317
318 void print() const
(1209 . 8)(1209 . 8)
320 str += CBlockIndex::ToString();
321 str += strprintf("\n hashBlock=%s, hashPrev=%s, hashNext=%s)",
322 GetBlockHash().ToString().c_str(),
323 hashPrev.ToString().substr(0,20).c_str(),
324 hashNext.ToString().substr(0,20).c_str());
325 hashPrev.ToString().c_str(),
326 hashNext.ToString().c_str());
327 return str;
328 }
329