Strip includes

This commit is contained in:
Vinnie Falco
2013-06-18 09:04:51 -07:00
parent 2abec05b5b
commit d9f222fa83
54 changed files with 80 additions and 287 deletions

View File

@@ -29,22 +29,27 @@
#include <vector> #include <vector>
// VFALCO NOTE Holy smokes...that's a lot of boost!!! // VFALCO NOTE Holy smokes...that's a lot of boost!!!
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>
#include <boost/array.hpp> #include <boost/array.hpp>
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/asio/read_until.hpp>
#include <boost/asio/ssl.hpp> #include <boost/asio/ssl.hpp>
#include <boost/asio/streambuf.hpp>
#include <boost/bimap.hpp> #include <boost/bimap.hpp>
#include <boost/bimap/unordered_set_of.hpp> #include <boost/bimap/list_of.hpp>
#include <boost/bimap/multiset_of.hpp> #include <boost/bimap/multiset_of.hpp>
#include <boost/bimap/unordered_set_of.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include <boost/cstdint.hpp> #include <boost/cstdint.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/enable_shared_from_this.hpp> #include <boost/enable_shared_from_this.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/format.hpp> #include <boost/format.hpp>
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <boost/mem_fn.hpp> #include <boost/mem_fn.hpp>
@@ -71,11 +76,16 @@
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <openssl/buffer.h>
#include <openssl/ec.h> #include <openssl/ec.h>
#include <openssl/evp.h>
#include <openssl/md5.h> #include <openssl/md5.h>
#include <openssl/ripemd.h> #include <openssl/ripemd.h>
#include <openssl/sha.h> #include <openssl/sha.h>
// for SqliteDatabase.cpp
#include "src/cpp/database/sqlite3.h"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// VFALCO TODO fix these warnings! // VFALCO TODO fix these warnings!
@@ -92,6 +102,16 @@
#include "../ripple_data/ripple_data.h" #include "../ripple_data/ripple_data.h"
// VFALCO NOTE Log dependencies have wormed their way into websocketpp,
// which needs the ripple_basic module to compile.
//
// VFALCO TODO Make a unity include for websocket
// for WSDoor, et. al.
#include "src/cpp/websocketpp/src/sockets/autotls.hpp"
#include "src/cpp/websocketpp/src/websocketpp.hpp"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// VFALCO NOTE The order of these includes is critical, since they do not // VFALCO NOTE The order of these includes is critical, since they do not
@@ -204,6 +224,7 @@
#include "src/cpp/ripple/ripple_IApplication.h" #include "src/cpp/ripple/ripple_IApplication.h"
#include "src/cpp/ripple/AutoSocket.h" #include "src/cpp/ripple/AutoSocket.h"
#include "src/cpp/ripple/CallRPC.h" #include "src/cpp/ripple/CallRPC.h"
#include "src/cpp/ripple/Transactor.h"
#include "src/cpp/ripple/ChangeTransactor.h" #include "src/cpp/ripple/ChangeTransactor.h"
#include "src/cpp/ripple/HTTPRequest.h" #include "src/cpp/ripple/HTTPRequest.h"
#include "src/cpp/ripple/HttpsClient.h" #include "src/cpp/ripple/HttpsClient.h"
@@ -226,14 +247,13 @@
#include "src/cpp/ripple/PaymentTransactor.h" #include "src/cpp/ripple/PaymentTransactor.h"
#include "src/cpp/ripple/PeerDoor.h" #include "src/cpp/ripple/PeerDoor.h"
#include "src/cpp/ripple/RPC.h" #include "src/cpp/ripple/RPC.h"
#include "src/cpp/ripple/RPCServer.h"
#include "src/cpp/ripple/RPCDoor.h" #include "src/cpp/ripple/RPCDoor.h"
#include "src/cpp/ripple/RPCErr.h" #include "src/cpp/ripple/RPCErr.h"
#include "src/cpp/ripple/RPCServer.h"
#include "src/cpp/ripple/RPCSub.h" #include "src/cpp/ripple/RPCSub.h"
#include "src/cpp/ripple/RegularKeySetTransactor.h" #include "src/cpp/ripple/RegularKeySetTransactor.h"
#include "src/cpp/ripple/ripple_RippleState.h" #include "src/cpp/ripple/ripple_RippleState.h"
#include "src/cpp/ripple/SerializedValidation.h" #include "src/cpp/ripple/SerializedValidation.h"
#include "src/cpp/ripple/Transactor.h"
#include "src/cpp/ripple/AccountSetTransactor.h" #include "src/cpp/ripple/AccountSetTransactor.h"
#include "src/cpp/ripple/TrustSetTransactor.h" #include "src/cpp/ripple/TrustSetTransactor.h"
#include "src/cpp/ripple/ripple_Version.h" #include "src/cpp/ripple/ripple_Version.h"
@@ -243,6 +263,21 @@
#include "../websocketpp/src/logger/logger.hpp" // for ripple_LogWebSockets.cpp #include "../websocketpp/src/logger/logger.hpp" // for ripple_LogWebSockets.cpp
#if 0
#include <iostream>
#include <cstdlib>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/bind.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <boost/regex.hpp>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// VFALCO TODO figure out who needs these and move to a sensible private header. // VFALCO TODO figure out who needs these and move to a sensible private header.

View File

@@ -115,9 +115,6 @@
<Filter Include="1. Modules\ripple_app\_unfactored\transactions"> <Filter Include="1. Modules\ripple_app\_unfactored\transactions">
<UniqueIdentifier>{1d36a65a-de7c-41f9-85dd-93b29d67606e}</UniqueIdentifier> <UniqueIdentifier>{1d36a65a-de7c-41f9-85dd-93b29d67606e}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="1. Modules\ripple_app\_unfactored\main">
<UniqueIdentifier>{1ccfc5ad-5cd7-4a8e-b305-08f663c2397c}</UniqueIdentifier>
</Filter>
<Filter Include="1. Modules\ripple_app\_unfactored\ledger"> <Filter Include="1. Modules\ripple_app\_unfactored\ledger">
<UniqueIdentifier>{c441b367-d096-401f-a3f0-5ac24290d7b7}</UniqueIdentifier> <UniqueIdentifier>{c441b367-d096-401f-a3f0-5ac24290d7b7}</UniqueIdentifier>
</Filter> </Filter>
@@ -1214,9 +1211,6 @@
<ClInclude Include="src\cpp\database\database.h"> <ClInclude Include="src\cpp\database\database.h">
<Filter>1. Modules\ripple_app\_unfactored\db</Filter> <Filter>1. Modules\ripple_app\_unfactored\db</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\cpp\database\SqliteDatabase.h">
<Filter>1. Modules\ripple_app\_unfactored\db</Filter>
</ClInclude>
<ClInclude Include="modules\ripple_net\ripple_net.h"> <ClInclude Include="modules\ripple_net\ripple_net.h">
<Filter>2. %28Unused%29\ripple_net</Filter> <Filter>2. %28Unused%29\ripple_net</Filter>
</ClInclude> </ClInclude>
@@ -1644,6 +1638,9 @@
<ClInclude Include="modules\ripple_basics\utility\ripple_CountedObject.h"> <ClInclude Include="modules\ripple_basics\utility\ripple_CountedObject.h">
<Filter>1. Modules\ripple_basics\utility</Filter> <Filter>1. Modules\ripple_basics\utility</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\cpp\database\SqliteDatabase.h">
<Filter>1. Modules\ripple_app\_unfactored\db</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="SConstruct" /> <None Include="SConstruct" />

View File

@@ -4,21 +4,37 @@
*/ */
//============================================================================== //==============================================================================
#include "SqliteDatabase.h"
#include "sqlite3.h"
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <boost/thread.hpp>
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
SETUP_LOG (SqliteDatabase) SETUP_LOG (SqliteDatabase)
using namespace std; using namespace std;
SqliteStatement::SqliteStatement (SqliteDatabase* db, const char* sql, bool aux)
{
assert (db);
sqlite3* conn = aux ? db->getAuxConnection () : db->peekConnection ();
int j = sqlite3_prepare_v2 (conn, sql, strlen (sql) + 1, &statement, NULL);
if (j != SQLITE_OK)
throw j;
}
SqliteStatement::SqliteStatement (SqliteDatabase* db, const std::string& sql, bool aux)
{
assert (db);
sqlite3* conn = aux ? db->getAuxConnection () : db->peekConnection ();
int j = sqlite3_prepare_v2 (conn, sql.c_str (), sql.size () + 1, &statement, NULL);
if (j != SQLITE_OK)
throw j;
}
SqliteStatement::~SqliteStatement ()
{
sqlite3_finalize (statement);
}
SqliteDatabase::SqliteDatabase (const char* host) : Database (host, "", ""), mWalQ (NULL), walRunning (false) SqliteDatabase::SqliteDatabase (const char* host) : Database (host, "", ""), mWalQ (NULL), walRunning (false)
{ {
mConnection = NULL; mConnection = NULL;
@@ -298,33 +314,6 @@ void SqliteDatabase::runWal ()
} }
} }
SqliteStatement::SqliteStatement (SqliteDatabase* db, const char* sql, bool aux)
{
assert (db);
sqlite3* conn = aux ? db->getAuxConnection () : db->peekConnection ();
int j = sqlite3_prepare_v2 (conn, sql, strlen (sql) + 1, &statement, NULL);
if (j != SQLITE_OK)
throw j;
}
SqliteStatement::SqliteStatement (SqliteDatabase* db, const std::string& sql, bool aux)
{
assert (db);
sqlite3* conn = aux ? db->getAuxConnection () : db->peekConnection ();
int j = sqlite3_prepare_v2 (conn, sql.c_str (), sql.size () + 1, &statement, NULL);
if (j != SQLITE_OK)
throw j;
}
SqliteStatement::~SqliteStatement ()
{
sqlite3_finalize (statement);
}
sqlite3_stmt* SqliteStatement::peekStatement () sqlite3_stmt* SqliteStatement::peekStatement ()
{ {
return statement; return statement;

View File

@@ -13,7 +13,7 @@ struct sqlite3_stmt;
class SqliteDatabase : public Database class SqliteDatabase : public Database
{ {
public: public:
SqliteDatabase (const char* host); explicit SqliteDatabase (char const* host);
void connect (); void connect ();
void disconnect (); void disconnect ();
@@ -61,6 +61,7 @@ public:
private: private:
sqlite3* mConnection; sqlite3* mConnection;
// VFALCO TODO Why do we need an "aux" connection? Should just use a second SqliteDatabase object.
sqlite3* mAuxConnection; sqlite3* mAuxConnection;
sqlite3_stmt* mCurrentStmt; sqlite3_stmt* mCurrentStmt;
bool mMoreRows; bool mMoreRows;
@@ -80,6 +81,9 @@ protected:
sqlite3_stmt* statement; sqlite3_stmt* statement;
public: public:
// VFALCO TODO This is quite a convoluted interface. A mysterious "aux" connection?
// Why not just have two SqliteDatabase objects?
//
SqliteStatement (SqliteDatabase* db, const char* statement, bool aux = false); SqliteStatement (SqliteDatabase* db, const char* statement, bool aux = false);
SqliteStatement (SqliteDatabase* db, const std::string& statement, bool aux = false); SqliteStatement (SqliteDatabase* db, const std::string& statement, bool aux = false);
~SqliteStatement (); ~SqliteStatement ();

View File

@@ -4,10 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "database.h"
#include <stdlib.h>
#include <string.h>
Database::Database (const char* host, const char* user, const char* pass) : mNumCol (0) Database::Database (const char* host, const char* user, const char* pass) : mNumCol (0)
{ {
mDBPass = pass; mDBPass = pass;

View File

@@ -7,17 +7,6 @@
#ifndef __AUTOSOCKET_H_ #ifndef __AUTOSOCKET_H_
#define __AUTOSOCKET_H_ #define __AUTOSOCKET_H_
#include <vector>
#include <string>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/smart_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/asio/read_until.hpp>
extern LogPartition AutoSocketPartition; extern LogPartition AutoSocketPartition;
// Socket wrapper that supports both SSL and non-SSL connections. // Socket wrapper that supports both SSL and non-SSL connections.

View File

@@ -11,26 +11,6 @@
// Improvements to be more strict and to provide better diagnostics are welcome. // Improvements to be more strict and to provide better diagnostics are welcome.
// //
#include <iostream>
#include <cstdlib>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/bind.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <boost/regex.hpp>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include "RPC.h"
#include "RPCErr.h"
#include "CallRPC.h"
SETUP_LOG (RPCParser) SETUP_LOG (RPCParser)
static inline bool isSwitchChar (char c) static inline bool isSwitchChar (char c)

View File

@@ -7,8 +7,6 @@
#ifndef __CALLRPC__ #ifndef __CALLRPC__
#define __CALLRPC__ #define __CALLRPC__
#include <string>
class RPCParser class RPCParser
{ {
public: public:

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (ChangeTransactor) SETUP_LOG (ChangeTransactor)
TER ChangeTransactor::doApply () TER ChangeTransactor::doApply ()

View File

@@ -4,8 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "Transactor.h"
class ChangeTransactor : public Transactor class ChangeTransactor : public Transactor
{ {
public: public:

View File

@@ -4,11 +4,6 @@
*/ */
//============================================================================== //==============================================================================
using namespace Script;
/*
JED: V III
*/
Contract::Contract () Contract::Contract ()
{ {

View File

@@ -4,8 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include <string>
// Transaction database holds transactions and public keys // Transaction database holds transactions and public keys
const char* TxnDBInit[] = const char* TxnDBInit[] =
{ {

View File

@@ -4,12 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "HTTPRequest.h"
#include <iostream>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
SETUP_LOG (HTTPRequest) SETUP_LOG (HTTPRequest)
// Logic to handle incoming HTTP reqests // Logic to handle incoming HTTP reqests

View File

@@ -7,11 +7,6 @@
#ifndef HTTPREQUEST__HPP #ifndef HTTPREQUEST__HPP
#define HTTPREQUEST__HPP #define HTTPREQUEST__HPP
#include <string>
#include <map>
#include <boost/asio/streambuf.hpp>
enum HTTPRequestAction enum HTTPRequestAction
{ {
// What the application code needs to do // What the application code needs to do

View File

@@ -7,17 +7,6 @@
#ifndef _HTTPS_CLIENT_ #ifndef _HTTPS_CLIENT_
#define _HTTPS_CLIENT_ #define _HTTPS_CLIENT_
#include <deque>
#include <string>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include "AutoSocket.h"
// //
// Async https client. // Async https client.
// //

View File

@@ -4,9 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "Interpreter.h"
#include "Operation.h"
/* /*
We also need to charge for each op We also need to charge for each op

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (OfferCancelTransactor) SETUP_LOG (OfferCancelTransactor)
TER OfferCancelTransactor::doApply () TER OfferCancelTransactor::doApply ()

View File

@@ -7,8 +7,6 @@
#ifndef OFFERCANCELTRANSACTOR_H #ifndef OFFERCANCELTRANSACTOR_H
#define OFFERCANCELTRANSACTOR_H #define OFFERCANCELTRANSACTOR_H
#include "Transactor.h"
class OfferCancelTransactor : public Transactor class OfferCancelTransactor : public Transactor
{ {
public: public:

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (OfferCreateTransactor) SETUP_LOG (OfferCreateTransactor)
// Make sure an offer is still valid. If not, mark it unfunded. // Make sure an offer is still valid. If not, mark it unfunded.

View File

@@ -7,8 +7,6 @@
#ifndef __OFFERCREATETRANSACTOR__ #ifndef __OFFERCREATETRANSACTOR__
#define __OFFERCREATETRANSACTOR__ #define __OFFERCREATETRANSACTOR__
#include "Transactor.h"
class OfferCreateTransactor : public Transactor class OfferCreateTransactor : public Transactor
{ {
public: public:

View File

@@ -4,11 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "ParameterTable.h"
#include <boost/make_shared.hpp>
#include <boost/foreach.hpp>
bool ParameterNode::setValue (const std::string& name, const Json::Value& value, Json::Value& error) bool ParameterNode::setValue (const std::string& name, const Json::Value& value, Json::Value& error)
{ {
if (name.empty ()) // this node if (name.empty ()) // this node

View File

@@ -4,12 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "ParseSection.h"
#include <iostream>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#define SECTION_DEFAULT_NAME "" #define SECTION_DEFAULT_NAME ""
// for logging // for logging

View File

@@ -7,10 +7,6 @@
#ifndef _PARSE_SECTION_ #ifndef _PARSE_SECTION_
#define _PARSE_SECTION_ #define _PARSE_SECTION_
#include <map>
#include <vector>
#include <string>
typedef std::map<const std::string, std::vector<std::string> > section; typedef std::map<const std::string, std::vector<std::string> > section;
section ParseSection (const std::string& strInput, const bool bTrim); section ParseSection (const std::string& strInput, const bool bTrim);

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (PaymentTransactor) SETUP_LOG (PaymentTransactor)
#define RIPPLE_PATHS_MAX 6 #define RIPPLE_PATHS_MAX 6

View File

@@ -7,8 +7,6 @@
#ifndef __PAYMENTTRANSACTOR__ #ifndef __PAYMENTTRANSACTOR__
#define __PAYMENTTRANSACTOR__ #define __PAYMENTTRANSACTOR__
#include "Transactor.h"
class PaymentTransactor : public Transactor class PaymentTransactor : public Transactor
{ {
public: public:

View File

@@ -7,9 +7,6 @@
#ifndef __PEERDOOR__ #ifndef __PEERDOOR__
#define __PEERDOOR__ #define __PEERDOOR__
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
/* /*
Handles incoming connections from other Peers Handles incoming connections from other Peers
*/ */

View File

@@ -7,9 +7,6 @@
#ifndef __RPC_h__ #ifndef __RPC_h__
#define __RPC_h__ #define __RPC_h__
#include <string>
#include <map>
enum http_status_type enum http_status_type
{ {
ok = 200, ok = 200,

View File

@@ -4,10 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "RPCDoor.h"
#include <boost/bind.hpp>
#include <iostream>
SETUP_LOG (RPCDoor) SETUP_LOG (RPCDoor)
using namespace std; using namespace std;

View File

@@ -7,8 +7,6 @@
#ifndef RIPPLE_RPCDOOR_H #ifndef RIPPLE_RPCDOOR_H
#define RIPPLE_RPCDOOR_H #define RIPPLE_RPCDOOR_H
#include "RPCServer.h"
/* /*
Handles incoming connections from people making RPC Requests Handles incoming connections from people making RPC Requests
*/ */

View File

@@ -4,9 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "RPCErr.h"
// For logging // For logging
struct RPCErr { }; struct RPCErr { };

View File

@@ -7,10 +7,6 @@
#ifndef __RPCHANDLER__ #ifndef __RPCHANDLER__
#define __RPCHANDLER__ #define __RPCHANDLER__
#include <boost/unordered_set.hpp>
#include "Ledger.h"
#define LEDGER_CURRENT -1 #define LEDGER_CURRENT -1
#define LEDGER_CLOSED -2 #define LEDGER_CLOSED -2
#define LEDGER_VALIDATED -3 #define LEDGER_VALIDATED -3

View File

@@ -4,20 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "RPCServer.h"
#include "HttpsClient.h"
#include "RPC.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/asio/read_until.hpp>
#ifndef RPC_MAXIMUM_QUERY #ifndef RPC_MAXIMUM_QUERY
#define RPC_MAXIMUM_QUERY (1024*1024) #define RPC_MAXIMUM_QUERY (1024*1024)
#endif #endif

View File

@@ -7,9 +7,6 @@
#ifndef __RPCSERVER__ #ifndef __RPCSERVER__
#define __RPCSERVER__ #define __RPCSERVER__
#include "HTTPRequest.h"
#include "RPCHandler.h"
class RPCServer : public boost::enable_shared_from_this<RPCServer> class RPCServer : public boost::enable_shared_from_this<RPCServer>
{ {
public: public:

View File

@@ -4,12 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include <boost/thread.hpp>
#include "RPCSub.h"
#include "CallRPC.h"
SETUP_LOG (RPCSub) SETUP_LOG (RPCSub)
RPCSub::RPCSub (const std::string& strUrl, const std::string& strUsername, const std::string& strPassword) RPCSub::RPCSub (const std::string& strUrl, const std::string& strUsername, const std::string& strPassword)

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (RegularKeySetTransactor) SETUP_LOG (RegularKeySetTransactor)
uint64 RegularKeySetTransactor::calculateBaseFee () uint64 RegularKeySetTransactor::calculateBaseFee ()

View File

@@ -7,8 +7,6 @@
#ifndef REGULARKEYSETTRANSACTOR_H #ifndef REGULARKEYSETTRANSACTOR_H
#define REGULARKEYSETTRANSACTOR_H #define REGULARKEYSETTRANSACTOR_H
#include "Transactor.h"
class RegularKeySetTransactor : public Transactor class RegularKeySetTransactor : public Transactor
{ {
uint64 calculateBaseFee (); uint64 calculateBaseFee ();

View File

@@ -4,14 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include "SNTPClient.h"
#include <boost/bind.hpp>
#include <boost/make_shared.hpp>
#include <boost/foreach.hpp>
#include <openssl/rand.h>
SETUP_LOG (SNTPClient) SETUP_LOG (SNTPClient)
// #define SNTP_DEBUG // #define SNTP_DEBUG

View File

@@ -7,14 +7,6 @@
#ifndef __SNTPCLIENT__ #ifndef __SNTPCLIENT__
#define __SNTPCLIENT__ #define __SNTPCLIENT__
#include <string>
#include <map>
#include <vector>
#include <list>
#include <boost/thread/mutex.hpp>
#include <boost/asio.hpp>
class SNTPQuery class SNTPQuery
{ {
public: public:

View File

@@ -3,7 +3,3 @@
Copyright (c) 2011-2013, OpenCoin, Inc. Copyright (c) 2011-2013, OpenCoin, Inc.
*/ */
//============================================================================== //==============================================================================
#include "ScriptData.h"
// vim:ts=4

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#ifndef CACHED_TRANSACTION_NUM #ifndef CACHED_TRANSACTION_NUM
#define CACHED_TRANSACTION_NUM 65536 #define CACHED_TRANSACTION_NUM 65536
#endif #endif

View File

@@ -7,8 +7,6 @@
#ifndef __TRANSACTIONMASTER__ #ifndef __TRANSACTIONMASTER__
#define __TRANSACTIONMASTER__ #define __TRANSACTIONMASTER__
#include "Transaction.h"
// Tracks all transactions in memory // Tracks all transactions in memory
class TransactionMaster class TransactionMaster

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
// VFALCO TODO rename class to TransactionMeta // VFALCO TODO rename class to TransactionMeta
SETUP_LOG (TransactionMetaSet) SETUP_LOG (TransactionMetaSet)

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
void TXQEntry::addCallbacks (const TXQEntry& otherEntry) void TXQEntry::addCallbacks (const TXQEntry& otherEntry)
{ {
BOOST_FOREACH (const stCallback & callback, otherEntry.mCallbacks) BOOST_FOREACH (const stCallback & callback, otherEntry.mCallbacks)

View File

@@ -9,15 +9,6 @@
// Allow transactions to be signature checked out of sequence but retired in sequence // Allow transactions to be signature checked out of sequence but retired in sequence
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/bimap.hpp>
#include <boost/bimap/unordered_set_of.hpp>
#include <boost/bimap/list_of.hpp>
#include "Transaction.h"
class TXQeueue; class TXQeueue;
class TXQEntry class TXQEntry

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (Transactor) SETUP_LOG (Transactor)
UPTR_T<Transactor> Transactor::makeTransactor (const SerializedTransaction& txn, TransactionEngineParams params, TransactionEngine* engine) UPTR_T<Transactor> Transactor::makeTransactor (const SerializedTransaction& txn, TransactionEngineParams params, TransactionEngine* engine)

View File

@@ -7,8 +7,6 @@
#ifndef __TRANSACTOR__ #ifndef __TRANSACTOR__
#define __TRANSACTOR__ #define __TRANSACTOR__
#include "TransactionEngine.h"
class Transactor class Transactor
{ {
public: public:

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
SETUP_LOG (TrustSetTransactor) SETUP_LOG (TrustSetTransactor)
TER TrustSetTransactor::doApply () TER TrustSetTransactor::doApply ()

View File

@@ -7,8 +7,6 @@
#ifndef TRUSTSETTRANSACTOR_H #ifndef TRUSTSETTRANSACTOR_H
#define TRUSTSETTRANSACTOR_H #define TRUSTSETTRANSACTOR_H
#include "Transactor.h"
class TrustSetTransactor : public Transactor class TrustSetTransactor : public Transactor
{ {
public: public:

View File

@@ -8,9 +8,6 @@
#ifndef RIPPLE_WSCONNECTION_H #ifndef RIPPLE_WSCONNECTION_H
#define RIPPLE_WSCONNECTION_H #define RIPPLE_WSCONNECTION_H
#include "../websocketpp/src/sockets/autotls.hpp"
#include "../websocketpp/src/websocketpp.hpp"
// This is for logging // This is for logging
struct WSConnectionLog; struct WSConnectionLog;

View File

@@ -4,24 +4,6 @@
*/ */
//============================================================================== //==============================================================================
//#define WSDOOR_CPP
//#include "../websocketpp/src/sockets/autotls.hpp"
//#include "../websocketpp/src/websocketpp.hpp"
#include "WSConnection.h"
#include "WSHandler.h"
#include "WSDoor.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <boost/mem_fn.hpp>
#include <boost/unordered_set.hpp>
SETUP_LOG (WSDoor) SETUP_LOG (WSDoor)
// //

View File

@@ -4,29 +4,8 @@
*/ */
//============================================================================== //==============================================================================
#ifndef __WSDOOR__ #ifndef RIPPLE_WSDOOR_RIPPLEHEADER
#define __WSDOOR__ #define RIPPLE_WSDOOR_RIPPLEHEADER
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include "../websocketpp/src/sockets/autotls.hpp"
#include "../websocketpp/src/websocketpp.hpp"
/*
#ifndef WSDOOR_CPP
namespace websocketpp
{
class server;
class server_autotls;
}
#endif
*/
class WSDoor class WSDoor
{ {

View File

@@ -4,7 +4,6 @@
*/ */
//============================================================================== //==============================================================================
namespace po = boost::program_options; namespace po = boost::program_options;
// VFALCO TODO make these singletons that initialize statically // VFALCO TODO make these singletons that initialize statically

View File

@@ -303,6 +303,10 @@ void HashedObjectStore::bulkWriteSQLite (Job&)
{ {
Database* db = theApp->getHashNodeDB ()->getDB (); Database* db = theApp->getHashNodeDB ()->getDB ();
// VFALCO TODO Get rid of the last parameter "aux", which is set to !theConfig.RUN_STANDALONE
//
static SqliteStatement pStB (db->getSqliteDB (), "BEGIN TRANSACTION;", !theConfig.RUN_STANDALONE); static SqliteStatement pStB (db->getSqliteDB (), "BEGIN TRANSACTION;", !theConfig.RUN_STANDALONE);
static SqliteStatement pStE (db->getSqliteDB (), "END TRANSACTION;", !theConfig.RUN_STANDALONE); static SqliteStatement pStE (db->getSqliteDB (), "END TRANSACTION;", !theConfig.RUN_STANDALONE);
static SqliteStatement pSt (db->getSqliteDB (), static SqliteStatement pSt (db->getSqliteDB (),

View File

@@ -4,18 +4,6 @@
*/ */
//============================================================================== //==============================================================================
#include <boost/asio.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include "RPC.h"
// Used for logging // Used for logging
struct RPC struct RPC
{ {