From 56484476a9afe9c38d7b22013f22b357c3037247 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 15 Dec 2011 12:53:56 -0800 Subject: [PATCH] More bugfixes. --- LedgerMaster.cpp | 4 ++++ NetworkOPs.cpp | 1 + Serializer.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/LedgerMaster.cpp b/LedgerMaster.cpp index e22bef6e2..e8fa90f36 100644 --- a/LedgerMaster.cpp +++ b/LedgerMaster.cpp @@ -28,7 +28,11 @@ bool LedgerMaster::addHeldTransaction(Transaction::pointer transaction) { boost::recursive_mutex::scoped_lock ml(mLock); if(!mHeldTransactionsByID[transaction->getID()]) + { mHeldTransactionsByID[transaction->getID()]=transaction; + return true; + } + return false; } void LedgerMaster::pushLedger(Ledger::pointer newLedger) diff --git a/NetworkOPs.cpp b/NetworkOPs.cpp index 864ad6494..e27c7076c 100644 --- a/NetworkOPs.cpp +++ b/NetworkOPs.cpp @@ -93,6 +93,7 @@ int NetworkOPs::findTransactionsByDestination(std::list& t const uint160& destinationAccount, uint32 startLedgerSeq, uint32 endLedgerSeq, int maxTransactions) { // WRITEME + return 0; } AccountState::pointer NetworkOPs::getAccountState(const uint160& accountID) diff --git a/Serializer.cpp b/Serializer.cpp index 79d25e128..416f73d4e 100644 --- a/Serializer.cpp +++ b/Serializer.cpp @@ -134,6 +134,7 @@ uint160 Serializer::getRIPEMD160(int size) const uint160 ret; if((size<0)||(size>mData.size())) size=mData.size(); RIPEMD160(&(mData.front()), size, (unsigned char *) &ret); + return ret; } uint256 Serializer::getSHA256(int size) const @@ -141,6 +142,7 @@ uint256 Serializer::getSHA256(int size) const uint256 ret; if((size<0)||(size>mData.size())) size=mData.size(); SHA256(&(mData.front()), size, (unsigned char *) &ret); + return ret; } uint256 Serializer::getSHA512Half(int size) const