Replace std::vector<unsigned char> with Blob

This commit is contained in:
Vinnie Falco
2013-06-07 15:14:10 -07:00
parent a6fdabc68a
commit b51edb58fc
72 changed files with 352 additions and 334 deletions

View File

@@ -90,7 +90,7 @@ Ledger::Ledger(bool /* dummy */, Ledger& prevLedger) :
zeroFees();
}
Ledger::Ledger(const std::vector<unsigned char>& rawLedger, bool hasPrefix) :
Ledger::Ledger(Blob const& rawLedger, bool hasPrefix) :
mClosed(false), mValidHash(false), mAccepted(false), mImmutable(true)
{
Serializer s(rawLedger);
@@ -272,7 +272,7 @@ Transaction::pointer Ledger::getTransaction(const uint256& transID) const
txn = Transaction::sharedTransaction(item->getData(), true);
else if (type == SHAMapTreeNode::tnTRANSACTION_MD)
{
std::vector<unsigned char> txnData;
Blob txnData;
int txnLength;
if (!item->peekSerializer().getVL(txnData, 0, txnLength))
return Transaction::pointer();