mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
.
This commit is contained in:
20
Ledger.h
20
Ledger.h
@@ -23,8 +23,10 @@ private:
|
||||
bool mFaith; //TODO: if you will bother to validate this ledger or not. You have to accept the first ledger on Faith
|
||||
|
||||
uint32 mIndex;
|
||||
std::string mHash;
|
||||
std::string mSignature;
|
||||
uint256 mHash;
|
||||
uint256 mSignature;
|
||||
uint256 mParentHash;
|
||||
uint32 mValidationSeqNum;
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +42,6 @@ private:
|
||||
Ledger::pointer mChild;
|
||||
|
||||
|
||||
void calcMoneyMap();
|
||||
void sign();
|
||||
void hash();
|
||||
void addTransactionRecalculate(TransactionPtr trans);
|
||||
@@ -48,6 +49,8 @@ private:
|
||||
public:
|
||||
typedef boost::shared_ptr<Ledger> pointer;
|
||||
Ledger(uint32 index);
|
||||
Ledger(newcoin::FullLedger& ledger);
|
||||
|
||||
void setTo(newcoin::FullLedger& ledger);
|
||||
|
||||
void save(std::string dir);
|
||||
@@ -55,9 +58,9 @@ public:
|
||||
|
||||
void recalculate(bool recursive=true);
|
||||
|
||||
void publish();
|
||||
void finalize();
|
||||
void publishValidation();
|
||||
|
||||
std::list<TransactionPtr>& getTransactions(){ return(mTransactions); }
|
||||
|
||||
bool hasTransaction(TransactionPtr trans);
|
||||
int64 getAmountHeld(uint160& address);
|
||||
@@ -67,13 +70,16 @@ public:
|
||||
void addIgnoredValidation(newcoin::Validation& valid);
|
||||
|
||||
uint32 getIndex(){ return(mIndex); }
|
||||
std::string& getHash();
|
||||
std::string& getSignature();
|
||||
uint256& getHash();
|
||||
uint256& getSignature();
|
||||
uint32 getValidSeqNum(){ return(mValidationSeqNum); }
|
||||
unsigned int getNumTransactions(){ return(mTransactions.size()); }
|
||||
std::map<uint160, std::pair<int64,uint32> >& getAccounts(){ return(mAccounts); }
|
||||
Account* getAccount(uint160& address);
|
||||
newcoin::FullLedger* createFullLedger();
|
||||
|
||||
Ledger::pointer getParent();
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user