mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
Cosmetic changes.
This commit is contained in:
13
src/Ledger.h
13
src/Ledger.h
@@ -21,7 +21,7 @@ enum LedgerStateParms
|
||||
lepNONE = 0, // no special flags
|
||||
|
||||
// input flags
|
||||
lepCREATE, // Create if not present
|
||||
lepCREATE, // Create if not present
|
||||
|
||||
// output flags
|
||||
lepOKAY, // success
|
||||
@@ -60,11 +60,11 @@ private:
|
||||
uint32 mLedgerSeq;
|
||||
uint16 mLedgerInterval;
|
||||
bool mClosed, mValidHash, mAccepted, mImmutable;
|
||||
|
||||
|
||||
SHAMap::pointer mTransactionMap, mAccountStateMap;
|
||||
|
||||
mutable boost::recursive_mutex mLock;
|
||||
|
||||
|
||||
Ledger(const Ledger&); // no implementation
|
||||
Ledger& operator=(const Ledger&); // no implementation
|
||||
|
||||
@@ -72,7 +72,7 @@ protected:
|
||||
|
||||
bool addTransaction(Transaction::pointer);
|
||||
bool addTransaction(const uint256& id, const Serializer& txn, uint64_t fee);
|
||||
|
||||
|
||||
static Ledger::pointer getSQL(const std::string& sqlStatement);
|
||||
|
||||
SerializedLedgerEntry::pointer getASNode(LedgerStateParms& parms, const uint256& nodeID,
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
Ledger(Ledger::pointer previous); // ledger after this one
|
||||
|
||||
void updateHash();
|
||||
void setClosed() { mClosed = true; }
|
||||
void setClosed() { mClosed = true; }
|
||||
void setAccepted() { mAccepted = true; }
|
||||
bool isClosed() { return mClosed; }
|
||||
bool isAccepted() { return mAccepted; }
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
bool hasTransaction(const uint256& TransID) const;
|
||||
Transaction::pointer getTransaction(const uint256& transID) const;
|
||||
|
||||
Ledger::pointer switchPreviousLedger(Ledger::pointer oldPrevious, Ledger::pointer newPrevious, int limit);
|
||||
Ledger::pointer switchPreviousLedger(Ledger::pointer oldPrevious, Ledger::pointer newPrevious, int limit);
|
||||
|
||||
// high-level functions
|
||||
AccountState::pointer getAccountState(const NewcoinAddress& acctID);
|
||||
@@ -165,3 +165,4 @@ inline LedgerStateParms operator&(const LedgerStateParms& l1, const LedgerStateP
|
||||
}
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -71,3 +71,4 @@ bool SerializedLedgerEntry::isEquivalent(const SerializedType& t) const
|
||||
if (mObject != v->mObject) return false;
|
||||
return true;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -74,3 +74,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -131,3 +131,4 @@ public:
|
||||
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -407,3 +407,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
#include "SerializedValidation.h"
|
||||
|
||||
SOElement SerializedValidation::sValidationFormat[16] = {
|
||||
SOElement SerializedValidation::sValidationFormat[] = {
|
||||
{ sfFlags, "Flags", STI_UINT32, SOE_FLAGS, 0 },
|
||||
{ sfLedgerHash, "LedgerHash", STI_HASH256, SOE_REQUIRED, 0 },
|
||||
{ sfSigningKey, "SigningKey", STI_VL, SOE_REQUIRED, 0 },
|
||||
@@ -90,3 +90,4 @@ std::vector<unsigned char> SerializedValidation::getSignature() const
|
||||
{
|
||||
return mSignature.peekValue();
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -35,3 +35,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -233,12 +233,12 @@ bool Serializer::checkSignature(int pubkeyOffset, int signatureOffset) const
|
||||
|
||||
CKey pubCKey;
|
||||
if (!pubCKey.SetPubKey(pubkey)) return false;
|
||||
return pubCKey.Verify(getSHA512Half(signatureOffset), signature);
|
||||
return pubCKey.Verify(getSHA512Half(signatureOffset), signature);
|
||||
}
|
||||
|
||||
bool Serializer::checkSignature(const std::vector<unsigned char> &signature, CKey& key) const
|
||||
{
|
||||
return key.Verify(getSHA512Half(), signature);
|
||||
return key.Verify(getSHA512Half(), signature);
|
||||
}
|
||||
|
||||
bool Serializer::makeSignature(std::vector<unsigned char> &signature, CKey& key) const
|
||||
@@ -571,3 +571,4 @@ std::vector<TaggedListItem> SerializerIterator::getTaggedList()
|
||||
mPos += length;
|
||||
return tl;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -191,3 +191,4 @@ TransactionEngineResult TransactionEngine::doDelete(const SerializedTransaction&
|
||||
{
|
||||
return terUNKNOWN;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -80,3 +80,4 @@ inline TransactionEngineParams operator&(const TransactionEngineParams& l1, cons
|
||||
}
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -55,3 +55,4 @@ TransactionFormat* getTxnFormat(TransactionType t)
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -29,3 +29,4 @@ const int TransactionMaxLen=1048576;
|
||||
extern TransactionFormat InnerTxnFormats[];
|
||||
extern TransactionFormat* getTxnFormat(TransactionType t);
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -38,3 +38,4 @@ bool TransactionMaster::canonicalize(Transaction::pointer& txn, bool may_be_new)
|
||||
theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn));
|
||||
return false;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
@@ -22,3 +22,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user