Move Wallet files to ripple_ledger module

This commit is contained in:
Vinnie Falco
2013-05-22 17:34:12 -07:00
parent 6775ae60e0
commit d2fecb5364
6 changed files with 46 additions and 40 deletions

View File

@@ -1,19 +1,3 @@
#define WIN32_LEAN_AND_MEAN
#include <string>
#include "openssl/ec.h"
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp>
#include "Wallet.h"
#include "Ledger.h"
#include "RippleAddress.h"
#include "Application.h"
#include "utils.h"
Wallet::Wallet() : mDh512(NULL), mDh1024(NULL), mLedger(0)
{ ; }

View File

@@ -1,7 +1,3 @@
#include "WalletAddTransactor.h"
SETUP_LOG();
TER WalletAddTransactor::doApply()
{
std::cerr << "WalletAdd>" << std::endl;
@@ -16,7 +12,7 @@ TER WalletAddTransactor::doApply()
if (uTxFlags)
{
cLog(lsINFO) << "WalletAdd: Malformed transaction: Invalid flags set.";
WriteLog (lsINFO, WalletAddTransactor) << "WalletAdd: Malformed transaction: Invalid flags set.";
return temINVALID_FLAG;
}
@@ -50,7 +46,7 @@ TER WalletAddTransactor::doApply()
if (saSrcBalance + saPaid < saDstAmount + uReserve) // Reserve is not scaled by fee.
{
// Vote no. However, transaction might succeed, if applied in a different order.
cLog(lsINFO) << boost::str(boost::format("WalletAdd: Delay transaction: Insufficient funds: %s / %s (%d)")
WriteLog (lsINFO, WalletAddTransactor) << boost::str(boost::format("WalletAdd: Delay transaction: Insufficient funds: %s / %s (%d)")
% saSrcBalance.getText() % (saDstAmount + uReserve).getText() % uReserve);
return tecUNFUNDED_ADD;

View File

@@ -1,5 +1,5 @@
#include "Transactor.h"
#ifndef WALLETADDTRANSACTOR_H
#define WALLETADDTRANSACTOR_H
class WalletAddTransactor : public Transactor
{
@@ -8,5 +8,6 @@ public:
TER doApply();
};
#endif
// vim:ts=4