mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up includes and add modules to the classic build:
An alternative to the unity build, the classic build compiles each translation unit individually. This adds more modules to the classic build: * Remove unity header app.h * Add missing includes as needed * Remove obsolete NodeStore backend code * Add app/, core/, crypto/, json/, net/, overlay/, peerfinder/ to classic build
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/PathCursor.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <tuple>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/book/Quality.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <tuple>
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <tuple>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
@@ -50,8 +51,9 @@ TER PathCursor::liquidity (LedgerEntrySet const& lesCheckpoint) const
|
||||
break;
|
||||
}
|
||||
|
||||
WriteLog (lsTRACE, RippleCalc)
|
||||
<< "nextIncrement: Path after reverse: " << pathState_.getJson ();
|
||||
// VFALCO-FIXME this generates errors
|
||||
// WriteLog (lsTRACE, RippleCalc)
|
||||
// << "nextIncrement: Path after reverse: " << pathState_.getJson ();
|
||||
|
||||
if (resultCode != tesSUCCESS)
|
||||
return resultCode;
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
@@ -36,8 +38,9 @@ void PathCursor::nextIncrement (LedgerEntrySet const& lesCheckpoint) const
|
||||
{
|
||||
// The next state is what is available in preference order.
|
||||
// This is calculated when referenced accounts changed.
|
||||
WriteLog (lsTRACE, RippleCalc)
|
||||
<< "nextIncrement: Path In: " << pathState_.getJson ();
|
||||
// VFALCO-FIXME this generates errors
|
||||
// WriteLog (lsTRACE, RippleCalc)
|
||||
// << "nextIncrement: Path In: " << pathState_.getJson ();
|
||||
|
||||
auto status = liquidity(lesCheckpoint);
|
||||
|
||||
@@ -57,8 +60,9 @@ void PathCursor::nextIncrement (LedgerEntrySet const& lesCheckpoint) const
|
||||
pathState_.setQuality(getRate (
|
||||
pathState_.outPass(), pathState_.inPass()));
|
||||
|
||||
WriteLog (lsTRACE, RippleCalc)
|
||||
<< "nextIncrement: Path after forward: " << pathState_.getJson ();
|
||||
// VFALCO-FIXME this generates errors
|
||||
// WriteLog (lsTRACE, RippleCalc)
|
||||
// << "nextIncrement: Path after forward: " << pathState_.getJson ();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLED_RIPPLE_MODULE_APP_PATHS_PATHCURSOR_H
|
||||
#define RIPPLED_RIPPLE_MODULE_APP_PATHS_PATHCURSOR_H
|
||||
|
||||
#include <ripple/app/paths/RippleCalc.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/paths/cursor/PathCursor.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <tuple>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -17,9 +17,11 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/book/Quality.h>
|
||||
#include <ripple/app/paths/Credit.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
@@ -151,7 +153,8 @@ TER PathCursor::reverseLiquidityForAccount () const
|
||||
<< " node.saRevIssue:" << node().saRevIssue
|
||||
<< " saNxtOwed:" << saNxtOwed;
|
||||
|
||||
WriteLog (lsTRACE, RippleCalc) << pathState_.getJson ();
|
||||
// VFALCO-FIXME this generates errors
|
||||
//WriteLog (lsTRACE, RippleCalc) << pathState_.getJson ();
|
||||
|
||||
// Current redeem req can't be more than IOUs on hand.
|
||||
assert (!node().saRevRedeem || -saNxtOwed >= node().saRevRedeem);
|
||||
|
||||
@@ -17,7 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/book/Quality.h>
|
||||
#include <ripple/app/paths/cursor/RippleLiquidity.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace path {
|
||||
|
||||
Reference in New Issue
Block a user