PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions | Variables
wallet.cpp File Reference
#include "wallet/wallet.h"
#include "amount.h"
#include "base58.h"
#include "checkpoints.h"
#include "coincontrol.h"
#include "guiinterfaceutil.h"
#include "kernel.h"
#include "invalid.h"
#include "masternode-budget.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "net.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "script/sign.h"
#include "stakeinput.h"
#include "swifttx.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
#include "secp256k1.h"
#include <assert.h>
#include <boost/algorithm/string.hpp>
#include "ecdhutil.h"
#include "secp256k1_bulletproofs.h"
#include "secp256k1_commitment.h"
#include "secp256k1_generator.h"
#include "txdb.h"
#include <boost/algorithm/string/replace.hpp>
#include <boost/thread.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "masternodeconfig.h"
#include "uint256.h"
Include dependency graph for wallet.cpp:

Go to the source code of this file.

Classes

struct  CompareValueOnly
 
class  CAffectedKeysVisitor
 

Functions

void ecdhEncode (unsigned char *unmasked, unsigned char *amount, const unsigned char *sharedSec, int size)
 
void ecdhDecode (unsigned char *masked, unsigned char *amount, const unsigned char *sharedSec, int size)
 
bool CheckTXAvailability (const CWalletTx *pcoin, bool fOnlyConfirmed, bool fUseIX, int &nDepth)
 Test if the transaction is spendable. More...
 
void GetAccountAddress (CWallet *pwalletMain, std::string strAccount, int nAccountIndex, bool bForceNew=false)
 
void add1s (std::string &s, int wantedSize)
 
bool computeStealthDestination (const CKey &secret, const CPubKey &pubViewKey, const CPubKey &pubSpendKey, CPubKey &des)
 
CBitcoinAddress GetAccountAddress (uint32_t nAccountIndex, std::string strAccount, CWallet *pwalletMain)
 

Variables

CWalletpwalletMain = nullptr
 
CFeeRate payTxFee (DEFAULT_TRANSACTION_FEE)
 Transaction fee set by the user. More...
 
CAmount maxTxFee = DEFAULT_TRANSACTION_MAXFEE
 
unsigned int nTxConfirmTarget = 1
 
bool bSpendZeroConfChange = true
 
bool bdisableSystemnotifications = false
 
bool fSendFreeTransactions = false
 
bool fPayAtLeastCustomFee = true
 
int64_t nStartupTime = GetTime()
 
int64_t nReserveBalance = 0
 
bool fTxDeleteEnabled = false
 
bool fTxConflictDeleteEnabled = false
 
int fDeleteInterval = DEFAULT_TX_DELETE_INTERVAL
 
unsigned int fDeleteTransactionsAfterNBlocks = DEFAULT_TX_RETENTION_BLOCKS
 
unsigned int fKeepLastNTransactions = DEFAULT_TX_RETENTION_LASTTX
 

Function Documentation

◆ add1s()

void add1s ( std::string &  s,
int  wantedSize 
)

Definition at line 6397 of file wallet.cpp.

Here is the caller graph for this function:

◆ computeStealthDestination()

bool computeStealthDestination ( const CKey secret,
const CPubKey pubViewKey,
const CPubKey pubSpendKey,
CPubKey des 
)

Definition at line 6598 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ecdhDecode()

void ecdhDecode ( unsigned char *  masked,
unsigned char *  amount,
const unsigned char *  sharedSec,
int  size 
)

Definition at line 83 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ecdhEncode()

void ecdhEncode ( unsigned char *  unmasked,
unsigned char *  amount,
const unsigned char *  sharedSec,
int  size 
)

Definition at line 69 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAccountAddress()

CBitcoinAddress GetAccountAddress ( uint32_t  nAccountIndex,
std::string  strAccount,
CWallet pwalletMain 
)

Definition at line 6840 of file wallet.cpp.

Here is the call graph for this function:

Variable Documentation

◆ bdisableSystemnotifications

bool bdisableSystemnotifications = false

Definition at line 55 of file wallet.cpp.

◆ bSpendZeroConfChange

bool bSpendZeroConfChange = true

Definition at line 54 of file wallet.cpp.

◆ fDeleteInterval

int fDeleteInterval = DEFAULT_TX_DELETE_INTERVAL

Definition at line 62 of file wallet.cpp.

◆ fDeleteTransactionsAfterNBlocks

unsigned int fDeleteTransactionsAfterNBlocks = DEFAULT_TX_RETENTION_BLOCKS

Definition at line 63 of file wallet.cpp.

◆ fKeepLastNTransactions

unsigned int fKeepLastNTransactions = DEFAULT_TX_RETENTION_LASTTX

Definition at line 64 of file wallet.cpp.

◆ fPayAtLeastCustomFee

bool fPayAtLeastCustomFee = true

Definition at line 57 of file wallet.cpp.

◆ fSendFreeTransactions

bool fSendFreeTransactions = false

Definition at line 56 of file wallet.cpp.

◆ fTxConflictDeleteEnabled

bool fTxConflictDeleteEnabled = false

Definition at line 61 of file wallet.cpp.

◆ fTxDeleteEnabled

bool fTxDeleteEnabled = false

Definition at line 60 of file wallet.cpp.

◆ maxTxFee

CAmount maxTxFee = DEFAULT_TRANSACTION_MAXFEE

Definition at line 52 of file wallet.cpp.

◆ nReserveBalance

int64_t nReserveBalance = 0

Definition at line 59 of file wallet.cpp.

◆ nStartupTime

int64_t nStartupTime = GetTime()

Definition at line 58 of file wallet.cpp.

◆ nTxConfirmTarget

unsigned int nTxConfirmTarget = 1

Definition at line 53 of file wallet.cpp.

◆ payTxFee

CFeeRate payTxFee(DEFAULT_TRANSACTION_FEE)

Transaction fee set by the user.

Settings.

◆ pwalletMain

CWallet* pwalletMain = nullptr

Definition at line 49 of file wallet.cpp.