|
|
@ -416,9 +416,15 @@ bool CTxDB::ReadOwnerTxes(uint160 hash160, int nMinHeight, vector<CTransaction>& |
|
|
|
string strType; |
|
|
|
string strType; |
|
|
|
uint160 hashItem; |
|
|
|
uint160 hashItem; |
|
|
|
CDiskTxPos pos; |
|
|
|
CDiskTxPos pos; |
|
|
|
ssKey >> strType >> hashItem >> pos; |
|
|
|
|
|
|
|
int nItemHeight; |
|
|
|
int nItemHeight; |
|
|
|
ssValue >> nItemHeight; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
ssKey >> strType >> hashItem >> pos; |
|
|
|
|
|
|
|
ssValue >> nItemHeight; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (std::exception &e) { |
|
|
|
|
|
|
|
return error("%s() : deserialize error", __PRETTY_FUNCTION__); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Read transaction
|
|
|
|
// Read transaction
|
|
|
|
if (strType != "owner" || hashItem != hash160) |
|
|
|
if (strType != "owner" || hashItem != hash160) |
|
|
@ -533,6 +539,8 @@ bool CTxDB::LoadBlockIndex() |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
// Unserialize
|
|
|
|
// Unserialize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
string strType; |
|
|
|
string strType; |
|
|
|
ssKey >> strType; |
|
|
|
ssKey >> strType; |
|
|
|
if (strType == "blockindex" && !fRequestShutdown) |
|
|
|
if (strType == "blockindex" && !fRequestShutdown) |
|
|
@ -564,6 +572,10 @@ bool CTxDB::LoadBlockIndex() |
|
|
|
{ |
|
|
|
{ |
|
|
|
break; // if shutdown requested or finished loading block index
|
|
|
|
break; // if shutdown requested or finished loading block index
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} // try
|
|
|
|
|
|
|
|
catch (std::exception &e) { |
|
|
|
|
|
|
|
return error("%s() : deserialize error", __PRETTY_FUNCTION__); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
pcursor->close(); |
|
|
|
pcursor->close(); |
|
|
|
|
|
|
|
|
|
|
|