mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanups and fixes.
This commit is contained in:
@@ -305,8 +305,6 @@ bool Transaction::convertToTransactions(uint32 firstLedgerSeq, uint32 secondLedg
|
||||
Transaction::pointer firstTrans, secondTrans;
|
||||
if (!!first)
|
||||
{ // transaction in our table
|
||||
Serializer s(first->getData());
|
||||
SerializerIterator sit(s);
|
||||
firstTrans = boost::make_shared<Transaction>(first->getData(), checkFirstTransactions);
|
||||
if ((firstTrans->getStatus() == INVALID) || (firstTrans->getID() != id ))
|
||||
{
|
||||
@@ -346,7 +344,7 @@ static bool isHex(char j)
|
||||
bool Transaction::isHexTxID(const std::string& txid)
|
||||
{
|
||||
if (txid.size() != 64) return false;
|
||||
for(int i=0; i<64; i++)
|
||||
for (int i = 0; i < 64; ++i)
|
||||
if (!isHex(txid[i])) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user