mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
More bugfixes.
This commit is contained in:
@@ -28,7 +28,11 @@ bool LedgerMaster::addHeldTransaction(Transaction::pointer transaction)
|
|||||||
{
|
{
|
||||||
boost::recursive_mutex::scoped_lock ml(mLock);
|
boost::recursive_mutex::scoped_lock ml(mLock);
|
||||||
if(!mHeldTransactionsByID[transaction->getID()])
|
if(!mHeldTransactionsByID[transaction->getID()])
|
||||||
|
{
|
||||||
mHeldTransactionsByID[transaction->getID()]=transaction;
|
mHeldTransactionsByID[transaction->getID()]=transaction;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LedgerMaster::pushLedger(Ledger::pointer newLedger)
|
void LedgerMaster::pushLedger(Ledger::pointer newLedger)
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ int NetworkOPs::findTransactionsByDestination(std::list<Transaction::pointer>& t
|
|||||||
const uint160& destinationAccount, uint32 startLedgerSeq, uint32 endLedgerSeq, int maxTransactions)
|
const uint160& destinationAccount, uint32 startLedgerSeq, uint32 endLedgerSeq, int maxTransactions)
|
||||||
{
|
{
|
||||||
// WRITEME
|
// WRITEME
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountState::pointer NetworkOPs::getAccountState(const uint160& accountID)
|
AccountState::pointer NetworkOPs::getAccountState(const uint160& accountID)
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ uint160 Serializer::getRIPEMD160(int size) const
|
|||||||
uint160 ret;
|
uint160 ret;
|
||||||
if((size<0)||(size>mData.size())) size=mData.size();
|
if((size<0)||(size>mData.size())) size=mData.size();
|
||||||
RIPEMD160(&(mData.front()), size, (unsigned char *) &ret);
|
RIPEMD160(&(mData.front()), size, (unsigned char *) &ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 Serializer::getSHA256(int size) const
|
uint256 Serializer::getSHA256(int size) const
|
||||||
@@ -141,6 +142,7 @@ uint256 Serializer::getSHA256(int size) const
|
|||||||
uint256 ret;
|
uint256 ret;
|
||||||
if((size<0)||(size>mData.size())) size=mData.size();
|
if((size<0)||(size>mData.size())) size=mData.size();
|
||||||
SHA256(&(mData.front()), size, (unsigned char *) &ret);
|
SHA256(&(mData.front()), size, (unsigned char *) &ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 Serializer::getSHA512Half(int size) const
|
uint256 Serializer::getSHA512Half(int size) const
|
||||||
|
|||||||
Reference in New Issue
Block a user