mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Strip includes from module sources and move them into unity .cpp file
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
#include "AcceptedLedger.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
TaggedCache<uint256, AcceptedLedger> AcceptedLedger::ALCache("AcceptedLedger", 4, 60);
|
||||
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
#include "AccountItems.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Log.h"
|
||||
|
||||
SETUP_LOG();
|
||||
|
||||
AccountItem::AccountItem(SerializedLedgerEntry::ref ledger) : mLedgerEntry(ledger)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "AccountSetTransactor.h"
|
||||
#include "Config.h"
|
||||
|
||||
TER AccountSetTransactor::doApply()
|
||||
{
|
||||
|
||||
@@ -1,16 +1,4 @@
|
||||
|
||||
#include "AccountState.h"
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Ledger.h"
|
||||
#include "Serializer.h"
|
||||
#include "Log.h"
|
||||
|
||||
AccountState::AccountState(const RippleAddress& naAccountID) : mAccountID(naAccountID), mValid(false)
|
||||
{
|
||||
if (!naAccountID.isValid()) return;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "Contract.h"
|
||||
#include "Interpreter.h"
|
||||
|
||||
using namespace Script;
|
||||
/*
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
#include "FeatureTable.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
#include "Application.h"
|
||||
#include "ValidationCollection.h"
|
||||
#include "HashPrefixes.h"
|
||||
|
||||
void FeatureTable::addInitialFeatures()
|
||||
{
|
||||
|
||||
@@ -1,27 +1,4 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "../database/SqliteDatabase.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "Ledger.h"
|
||||
#include "utils.h"
|
||||
#include "ripple.pb.h"
|
||||
#include "PackedMessage.h"
|
||||
#include "Config.h"
|
||||
#include "BitcoinUtil.h"
|
||||
#include "Wallet.h"
|
||||
#include "LedgerTiming.h"
|
||||
#include "HashPrefixes.h"
|
||||
#include "Log.h"
|
||||
|
||||
DECLARE_INSTANCE(Ledger);
|
||||
|
||||
Ledger::Ledger(const RippleAddress& masterID, uint64 startAmount) : mTotCoins(startAmount), mLedgerSeq(1),
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
|
||||
#include "LedgerAcquire.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/pointer_cast.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Log.h"
|
||||
#include "SHAMapSync.h"
|
||||
#include "HashPrefixes.h"
|
||||
|
||||
DECLARE_INSTANCE(LedgerAcquire);
|
||||
|
||||
#define LA_DEBUG
|
||||
|
||||
@@ -1,18 +1,3 @@
|
||||
#include "LedgerConsensus.h"
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/unordered_set.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "NetworkOPs.h"
|
||||
#include "LedgerTiming.h"
|
||||
#include "SerializedValidation.h"
|
||||
#include "Log.h"
|
||||
#include "SHAMapSync.h"
|
||||
|
||||
#define LEDGER_TOTAL_PASSES 8
|
||||
#define LEDGER_RETRY_PASSES 5
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
|
||||
#include "LedgerEntrySet.h"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
DECLARE_INSTANCE(LedgerEntrySetEntry);
|
||||
DECLARE_INSTANCE(LedgerEntrySet)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
#include "LedgerFormats.h"
|
||||
|
||||
std::map<int, LedgerEntryFormat*> LedgerEntryFormat::byType;
|
||||
std::map<std::string, LedgerEntryFormat*> LedgerEntryFormat::byName;
|
||||
|
||||
|
||||
@@ -1,14 +1,4 @@
|
||||
|
||||
#include "LedgerHistory.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
#include "Config.h"
|
||||
#include "Application.h"
|
||||
|
||||
#ifndef CACHED_LEDGER_NUM
|
||||
#define CACHED_LEDGER_NUM 96
|
||||
#endif
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
|
||||
#include "LedgerMaster.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "RippleAddress.h"
|
||||
#include "Log.h"
|
||||
#include "PFRequest.h"
|
||||
|
||||
#define MIN_VALIDATION_RATIO 150 // 150/256ths of validations of previous ledger
|
||||
#define MAX_LEDGER_GAP 100 // Don't catch up more than 100 ledgers (cannot exceed 256)
|
||||
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
|
||||
#include "LedgerProposal.h"
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
#include "key.h"
|
||||
#include "Application.h"
|
||||
#include "HashPrefixes.h"
|
||||
|
||||
DECLARE_INSTANCE(LedgerProposal);
|
||||
|
||||
LedgerProposal::LedgerProposal(const uint256& pLgr, uint32 seq, const uint256& tx, uint32 closeTime,
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
|
||||
#include "LedgerTiming.h"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
// VFALCO: Should rename ContinuousLedgerTiming to LedgerTiming
|
||||
struct LedgerTiming;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "Offer.h"
|
||||
|
||||
AccountItem::pointer Offer::makeItem(const uint160& ,SerializedLedgerEntry::ref ledgerEntry)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "OfferCancelTransactor.h"
|
||||
#include "Log.h"
|
||||
|
||||
TER OfferCancelTransactor::doApply()
|
||||
{
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
#include "Application.h"
|
||||
|
||||
#include "OfferCreateTransactor.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
// Make sure an offer is still valid. If not, mark it unfunded.
|
||||
bool OfferCreateTransactor::bValidOffer(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "Operation.h"
|
||||
#include "Config.h"
|
||||
|
||||
/*
|
||||
We also need to charge for each op
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "OrderBook.h"
|
||||
#include "Ledger.h"
|
||||
|
||||
OrderBook::OrderBook(SerializedLedgerEntry::ref ledgerEntry)
|
||||
{
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
#include "OrderBookDB.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/ref.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Log.h"
|
||||
|
||||
OrderBookDB::OrderBookDB() : mSeq(0)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#include "PaymentTransactor.h"
|
||||
#include "Config.h"
|
||||
#include "RippleCalc.h"
|
||||
#include "Application.h"
|
||||
|
||||
#define RIPPLE_PATHS_MAX 6
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "RegularKeySetTransactor.h"
|
||||
#include "Log.h"
|
||||
|
||||
uint64 RegularKeySetTransactor::calculateBaseFee()
|
||||
{
|
||||
|
||||
@@ -5,14 +5,6 @@
|
||||
// all liquidity is used.
|
||||
//
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/tuple/tuple_comparison.hpp>
|
||||
|
||||
#include "RippleCalc.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
std::size_t hash_value(const aciSource& asValue)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "RippleState.h"
|
||||
|
||||
|
||||
AccountItem::pointer RippleState::makeItem(const uint160& accountID, SerializedLedgerEntry::ref ledgerEntry)
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
#include "SerializedLedger.h"
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
#include "Ledger.h"
|
||||
#include "Log.h"
|
||||
|
||||
DECLARE_INSTANCE(SerializedLedgerEntry)
|
||||
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
|
||||
#include "SerializedObject.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include "LedgerFormats.h"
|
||||
#include "TransactionFormats.h"
|
||||
#include "SerializedTransaction.h"
|
||||
|
||||
DECLARE_INSTANCE(SerializedObject);
|
||||
DECLARE_INSTANCE(SerializedArray);
|
||||
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
|
||||
#include "SerializedTransaction.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Log.h"
|
||||
#include "HashPrefixes.h"
|
||||
|
||||
DECLARE_INSTANCE(SerializedTransaction);
|
||||
|
||||
SerializedTransaction::SerializedTransaction(TransactionType type) : STObject(sfTransaction), mType(type),
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include "SerializedTypes.h"
|
||||
#include "SerializedObject.h"
|
||||
#include "TransactionFormats.h"
|
||||
#include "LedgerFormats.h"
|
||||
#include "FieldNames.h"
|
||||
#include "Log.h"
|
||||
#include "RippleAddress.h"
|
||||
#include "utils.h"
|
||||
#include "RippleAddress.h"
|
||||
#include "TransactionErr.h"
|
||||
|
||||
const STAmount saZero(CURRENCY_ONE, ACCOUNT_ONE, 0);
|
||||
const STAmount saOne(CURRENCY_ONE, ACCOUNT_ONE, 1);
|
||||
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
|
||||
#include "SerializedValidation.h"
|
||||
|
||||
#include "Config.h"
|
||||
#include "Log.h"
|
||||
|
||||
DECLARE_INSTANCE(SerializedValidation);
|
||||
|
||||
SOTemplate sValidationFormat;
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
|
||||
#include "Serializer.h"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <openssl/ripemd.h>
|
||||
#include <openssl/sha.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "key.h"
|
||||
#include "Log.h"
|
||||
|
||||
int Serializer::addZeros(size_t uBytes)
|
||||
{
|
||||
int ret = mData.size();
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
#include <cassert>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/ref.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Transaction.h"
|
||||
#include "Wallet.h"
|
||||
#include "BitcoinUtil.h"
|
||||
#include "Serializer.h"
|
||||
#include "SerializedTransaction.h"
|
||||
#include "Log.h"
|
||||
|
||||
DECLARE_INSTANCE(Transaction);
|
||||
|
||||
|
||||
@@ -1,19 +1,3 @@
|
||||
#include "LedgerConsensus.h"
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/unordered_set.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/pointer_cast.hpp>
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "NetworkOPs.h"
|
||||
#include "SerializedValidation.h"
|
||||
#include "Log.h"
|
||||
#include "SHAMapSync.h"
|
||||
#include "HashPrefixes.h"
|
||||
|
||||
#define TX_ACQUIRE_TIMEOUT 250
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
|
||||
#include "TransactionErr.h"
|
||||
#include "TransactionEngine.h"
|
||||
|
||||
// VFALCO: TODO, move this into TransactionEngine.cpp
|
||||
|
||||
// Double check a transaction's metadata to make sure no system invariants were broken
|
||||
|
||||
@@ -2,19 +2,6 @@
|
||||
// XXX Make sure all fields are recognized in transactions.
|
||||
//
|
||||
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||
|
||||
#include "TransactionEngine.h"
|
||||
#include "Transactor.h"
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Config.h"
|
||||
#include "Log.h"
|
||||
#include "TransactionFormats.h"
|
||||
#include "utils.h"
|
||||
|
||||
DECLARE_INSTANCE(TransactionEngine);
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "TransactionErr.h"
|
||||
#include "utils.h"
|
||||
|
||||
bool transResultInfo(TER terCode, std::string& strToken, std::string& strHuman)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "TransactionFormats.h"
|
||||
|
||||
std::map<int, TransactionFormat*> TransactionFormat::byType;
|
||||
std::map<std::string, TransactionFormat*> TransactionFormat::byName;
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
|
||||
#include "TransactionMaster.h"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
#ifndef CACHED_TRANSACTION_NUM
|
||||
#define CACHED_TRANSACTION_NUM 65536
|
||||
#endif
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
#include "TransactionMeta.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
#include "SerializedObject.h"
|
||||
|
||||
// VFALCO: TODO, rename class to TransactionMeta
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include "TransactionQueue.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
void TXQEntry::addCallbacks(const TXQEntry& otherEntry)
|
||||
{
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
#include "Transactor.h"
|
||||
#include "Log.h"
|
||||
#include "Config.h"
|
||||
#include "PaymentTransactor.h"
|
||||
#include "RegularKeySetTransactor.h"
|
||||
#include "AccountSetTransactor.h"
|
||||
#include "WalletAddTransactor.h"
|
||||
#include "OfferCancelTransactor.h"
|
||||
#include "OfferCreateTransactor.h"
|
||||
#include "TrustSetTransactor.h"
|
||||
#include "ChangeTransactor.h"
|
||||
|
||||
UPTR_T<Transactor> Transactor::makeTransactor(const SerializedTransaction& txn,TransactionEngineParams params, TransactionEngine* engine)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include "Application.h"
|
||||
|
||||
#include "TrustSetTransactor.h"
|
||||
|
||||
TER TrustSetTransactor::doApply()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user