mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cosmetic changes.
This commit is contained in:
@@ -21,7 +21,7 @@ enum LedgerStateParms
|
|||||||
lepNONE = 0, // no special flags
|
lepNONE = 0, // no special flags
|
||||||
|
|
||||||
// input flags
|
// input flags
|
||||||
lepCREATE, // Create if not present
|
lepCREATE, // Create if not present
|
||||||
|
|
||||||
// output flags
|
// output flags
|
||||||
lepOKAY, // success
|
lepOKAY, // success
|
||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
Ledger(Ledger::pointer previous); // ledger after this one
|
Ledger(Ledger::pointer previous); // ledger after this one
|
||||||
|
|
||||||
void updateHash();
|
void updateHash();
|
||||||
void setClosed() { mClosed = true; }
|
void setClosed() { mClosed = true; }
|
||||||
void setAccepted() { mAccepted = true; }
|
void setAccepted() { mAccepted = true; }
|
||||||
bool isClosed() { return mClosed; }
|
bool isClosed() { return mClosed; }
|
||||||
bool isAccepted() { return mAccepted; }
|
bool isAccepted() { return mAccepted; }
|
||||||
@@ -118,7 +118,7 @@ public:
|
|||||||
bool hasTransaction(const uint256& TransID) const;
|
bool hasTransaction(const uint256& TransID) const;
|
||||||
Transaction::pointer getTransaction(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
|
// high-level functions
|
||||||
AccountState::pointer getAccountState(const NewcoinAddress& acctID);
|
AccountState::pointer getAccountState(const NewcoinAddress& acctID);
|
||||||
@@ -165,3 +165,4 @@ inline LedgerStateParms operator&(const LedgerStateParms& l1, const LedgerStateP
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -71,3 +71,4 @@ bool SerializedLedgerEntry::isEquivalent(const SerializedType& t) const
|
|||||||
if (mObject != v->mObject) return false;
|
if (mObject != v->mObject) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -74,3 +74,4 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -131,3 +131,4 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -407,3 +407,4 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
#include "SerializedValidation.h"
|
#include "SerializedValidation.h"
|
||||||
|
|
||||||
SOElement SerializedValidation::sValidationFormat[16] = {
|
SOElement SerializedValidation::sValidationFormat[] = {
|
||||||
{ sfFlags, "Flags", STI_UINT32, SOE_FLAGS, 0 },
|
{ sfFlags, "Flags", STI_UINT32, SOE_FLAGS, 0 },
|
||||||
{ sfLedgerHash, "LedgerHash", STI_HASH256, SOE_REQUIRED, 0 },
|
{ sfLedgerHash, "LedgerHash", STI_HASH256, SOE_REQUIRED, 0 },
|
||||||
{ sfSigningKey, "SigningKey", STI_VL, SOE_REQUIRED, 0 },
|
{ sfSigningKey, "SigningKey", STI_VL, SOE_REQUIRED, 0 },
|
||||||
@@ -90,3 +90,4 @@ std::vector<unsigned char> SerializedValidation::getSignature() const
|
|||||||
{
|
{
|
||||||
return mSignature.peekValue();
|
return mSignature.peekValue();
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -35,3 +35,4 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -571,3 +571,4 @@ std::vector<TaggedListItem> SerializerIterator::getTaggedList()
|
|||||||
mPos += length;
|
mPos += length;
|
||||||
return tl;
|
return tl;
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -191,3 +191,4 @@ TransactionEngineResult TransactionEngine::doDelete(const SerializedTransaction&
|
|||||||
{
|
{
|
||||||
return terUNKNOWN;
|
return terUNKNOWN;
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -80,3 +80,4 @@ inline TransactionEngineParams operator&(const TransactionEngineParams& l1, cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -55,3 +55,4 @@ TransactionFormat* getTxnFormat(TransactionType t)
|
|||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -29,3 +29,4 @@ const int TransactionMaxLen=1048576;
|
|||||||
extern TransactionFormat InnerTxnFormats[];
|
extern TransactionFormat InnerTxnFormats[];
|
||||||
extern TransactionFormat* getTxnFormat(TransactionType t);
|
extern TransactionFormat* getTxnFormat(TransactionType t);
|
||||||
#endif
|
#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));
|
theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
@@ -22,3 +22,4 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
Reference in New Issue
Block a user