@ -158,7 +158,7 @@ public:
if ( IsNull ( ) )
if ( IsNull ( ) )
return " null " ;
return " null " ;
else
else
return strprintf ( " (nFile=%d, nBlockPos=%d, nTxPos=%d ) " , nFile, nBlockPos, nTxPos) ;
return strprintf ( " (nFile=%u, nBlockPos=%u, nTxPos=%u ) " , nFile, nBlockPos, nTxPos) ;
}
}
void print ( ) const
void print ( ) const
@ -214,7 +214,7 @@ public:
std : : string ToString ( ) const
std : : string ToString ( ) const
{
{
return strprintf ( " COutPoint(%s, %d ) " , hash.ToString().substr(0,10).c_str(), n) ;
return strprintf ( " COutPoint(%s, %u ) " , hash.ToString().substr(0,10).c_str(), n) ;
}
}
void print ( ) const
void print ( ) const
@ -632,7 +632,7 @@ public:
std : : string ToString ( ) const
std : : string ToString ( ) const
{
{
std : : string str ;
std : : string str ;
str + = strprintf ( " CTransaction(hash=%s, ver=%d, vin.size=%d, vout.size=%d, nLockTime=%d ) \n " ,
str + = strprintf ( " CTransaction(hash=%s, ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u ) \n " ,
GetHash ( ) . ToString ( ) . substr ( 0 , 10 ) . c_str ( ) ,
GetHash ( ) . ToString ( ) . substr ( 0 , 10 ) . c_str ( ) ,
nVersion ,
nVersion ,
vin . size ( ) ,
vin . size ( ) ,
@ -1174,7 +1174,7 @@ public:
std : : string ToString ( ) const
std : : string ToString ( ) const
{
{
return strprintf ( " CBlockIndex(pprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, merkle=%s, hashBlock=%s) " ,
return strprintf ( " CBlockIndex(pprev=%08x, pnext=%08x, nFile=%u, nBlockPos=%-6u 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 ( ) ) ;