mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Move Wallet files to ripple_ledger module
This commit is contained in:
@@ -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)
|
||||
{ ; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user