![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "amount.h"
#include "base58.h"
#include "chain.h"
#include "core_io.h"
#include "init.h"
#include "instantx.h"
#include "net.h"
#include "policy/rbf.h"
#include "rpc/server.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
#include "validation.h"
#include "wallet.h"
#include "walletdb.h"
#include "keepass.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <univalue.h>
Go to the source code of this file.
Classes | |
struct | tallyitem |
Functions | |
std::string | HelpRequiringPassphrase () |
bool | EnsureWalletIsAvailable (bool avoidException) |
void | EnsureWalletIsUnlocked () |
void | WalletTxToJSON (const CWalletTx &wtx, UniValue &entry) |
string | AccountFromValue (const UniValue &value) |
UniValue | getnewaddress (const UniValue ¶ms, bool fHelp) |
CBitcoinAddress | GetAccountAddress (string strAccount, bool bForceNew=false) |
UniValue | getaccountaddress (const UniValue ¶ms, bool fHelp) |
UniValue | getrawchangeaddress (const UniValue ¶ms, bool fHelp) |
UniValue | setaccount (const UniValue ¶ms, bool fHelp) |
UniValue | getaccount (const UniValue ¶ms, bool fHelp) |
UniValue | getaddressesbyaccount (const UniValue ¶ms, bool fHelp) |
static void | SendMoney (const CTxDestination &address, CAmount nValue, bool fSubtractFeeFromAmount, CWalletTx &wtxNew, bool fUseInstantSend=false, bool fUsePrivateSend=false) |
UniValue | sendtoaddress (const UniValue ¶ms, bool fHelp) |
UniValue | instantsendtoaddress (const UniValue ¶ms, bool fHelp) |
UniValue | listaddressgroupings (const UniValue ¶ms, bool fHelp) |
UniValue | signmessage (const UniValue ¶ms, bool fHelp) |
UniValue | getreceivedbyaddress (const UniValue ¶ms, bool fHelp) |
UniValue | getreceivedbyaccount (const UniValue ¶ms, bool fHelp) |
CAmount | GetAccountBalance (CWalletDB &walletdb, const string &strAccount, int nMinDepth, const isminefilter &filter, bool fAddLockConf) |
CAmount | GetAccountBalance (const string &strAccount, int nMinDepth, const isminefilter &filter, bool fAddLockConf) |
UniValue | getbalance (const UniValue ¶ms, bool fHelp) |
UniValue | getunconfirmedbalance (const UniValue ¶ms, bool fHelp) |
UniValue | movecmd (const UniValue ¶ms, bool fHelp) |
UniValue | sendfrom (const UniValue ¶ms, bool fHelp) |
UniValue | sendmany (const UniValue ¶ms, bool fHelp) |
CScript | _createmultisig_redeemScript (const UniValue ¶ms) |
UniValue | addmultisigaddress (const UniValue ¶ms, bool fHelp) |
UniValue | ListReceived (const UniValue ¶ms, bool fByAccounts) |
UniValue | listreceivedbyaddress (const UniValue ¶ms, bool fHelp) |
UniValue | listreceivedbyaccount (const UniValue ¶ms, bool fHelp) |
static void | MaybePushAddress (UniValue &entry, const CTxDestination &dest) |
void | ListTransactions (const CWalletTx &wtx, const string &strAccount, int nMinDepth, bool fLong, UniValue &ret, const isminefilter &filter) |
void | AcentryToJSON (const CAccountingEntry &acentry, const string &strAccount, UniValue &ret) |
UniValue | listtransactions (const UniValue ¶ms, bool fHelp) |
UniValue | listaccounts (const UniValue ¶ms, bool fHelp) |
UniValue | listsinceblock (const UniValue ¶ms, bool fHelp) |
UniValue | gettransaction (const UniValue ¶ms, bool fHelp) |
UniValue | abandontransaction (const UniValue ¶ms, bool fHelp) |
UniValue | backupwallet (const UniValue ¶ms, bool fHelp) |
UniValue | keypoolrefill (const UniValue ¶ms, bool fHelp) |
static void | LockWallet (CWallet *pWallet) |
UniValue | walletpassphrase (const UniValue ¶ms, bool fHelp) |
UniValue | walletpassphrasechange (const UniValue ¶ms, bool fHelp) |
UniValue | walletlock (const UniValue ¶ms, bool fHelp) |
UniValue | encryptwallet (const UniValue ¶ms, bool fHelp) |
UniValue | lockunspent (const UniValue ¶ms, bool fHelp) |
UniValue | listlockunspent (const UniValue ¶ms, bool fHelp) |
UniValue | settxfee (const UniValue ¶ms, bool fHelp) |
UniValue | getwalletinfo (const UniValue ¶ms, bool fHelp) |
UniValue | keepass (const UniValue ¶ms, bool fHelp) |
UniValue | resendwallettransactions (const UniValue ¶ms, bool fHelp) |
UniValue | listunspent (const UniValue ¶ms, bool fHelp) |
UniValue | fundrawtransaction (const UniValue ¶ms, bool fHelp) |
Variables | |
int64_t | nWalletUnlockTime |
static CCriticalSection | cs_nWalletUnlockTime |
Used by addmultisigaddress / createmultisig:
Definition at line 340 of file misc.cpp.
Referenced by addmultisigaddress(), and createmultisig().
Definition at line 1902 of file rpcwallet.cpp.
Referenced by abandonconflict.AbandonConflictTest::run_test().
string AccountFromValue | ( | const UniValue & | value | ) |
Definition at line 105 of file rpcwallet.cpp.
Referenced by addmultisigaddress(), getaccountaddress(), getaddressesbyaccount(), getbalance(), getnewaddress(), getreceivedbyaccount(), movecmd(), sendfrom(), sendmany(), and setaccount().
void AcentryToJSON | ( | const CAccountingEntry & | acentry, |
const string & | strAccount, | ||
UniValue & | ret | ||
) |
Definition at line 1501 of file rpcwallet.cpp.
Referenced by listtransactions().
Definition at line 1151 of file rpcwallet.cpp.
Referenced by fundrawtransaction-hd.RawTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), and rawtransactions.RawTransactionsTest::run_test().
Definition at line 1937 of file rpcwallet.cpp.
Referenced by wallet-hd.WalletHDTest::run_test(), and walletbackup.WalletBackupTest::run_test().
Definition at line 2159 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), and fundrawtransaction.RawTransactionsTest::run_test().
bool EnsureWalletIsAvailable | ( | bool | avoidException | ) |
Definition at line 42 of file rpcwallet.cpp.
Referenced by abandontransaction(), addmultisigaddress(), backupwallet(), dumphdinfo(), dumpprivkey(), dumpwallet(), encryptwallet(), fundrawtransaction(), getaccount(), getaccountaddress(), getaddressesbyaccount(), getbalance(), getnewaddress(), getrawchangeaddress(), getreceivedbyaccount(), getreceivedbyaddress(), gettransaction(), getunconfirmedbalance(), getwalletinfo(), importaddress(), importelectrumwallet(), importprivkey(), importpubkey(), importwallet(), instantsendtoaddress(), keypoolrefill(), listaccounts(), listaddressgroupings(), listlockunspent(), listreceivedbyaccount(), listreceivedbyaddress(), listsinceblock(), listtransactions(), listunspent(), lockunspent(), movecmd(), resendwallettransactions(), sendfrom(), sendmany(), sendtoaddress(), setaccount(), settxfee(), signmessage(), walletlock(), walletpassphrase(), and walletpassphrasechange().
void EnsureWalletIsUnlocked | ( | ) |
Definition at line 54 of file rpcwallet.cpp.
Referenced by dumphdinfo(), dumpprivkey(), dumpwallet(), importelectrumwallet(), importprivkey(), importwallet(), instantsendtoaddress(), keypoolrefill(), masternode(), masternodebroadcast(), privatesend(), sendfrom(), sendmany(), sendtoaddress(), signmessage(), and signrawtransaction().
Definition at line 2651 of file rpcwallet.cpp.
Definition at line 305 of file rpcwallet.cpp.
Referenced by receivedby.ReceivedByTest::run_test(), and wallet.WalletTest::run_test().
CBitcoinAddress GetAccountAddress | ( | string | strAccount, |
bool | bForceNew = false |
||
) |
Definition at line 155 of file rpcwallet.cpp.
Referenced by getaccountaddress(), and setaccount().
Definition at line 192 of file rpcwallet.cpp.
Referenced by listtransactions.ListTransactionsTest::run_test(), receivedby.ReceivedByTest::run_test(), and wallet.WalletTest::run_test().
CAmount GetAccountBalance | ( | CWalletDB & | walletdb, |
const string & | strAccount, | ||
int | nMinDepth, | ||
const isminefilter & | filter, | ||
bool | fAddLockConf | ||
) |
Definition at line 760 of file rpcwallet.cpp.
Referenced by GetAccountBalance(), getbalance(), sendfrom(), and sendmany().
CAmount GetAccountBalance | ( | const string & | strAccount, |
int | nMinDepth, | ||
const isminefilter & | filter, | ||
bool | fAddLockConf | ||
) |
Definition at line 785 of file rpcwallet.cpp.
Definition at line 337 of file rpcwallet.cpp.
Definition at line 792 of file rpcwallet.cpp.
Referenced by abandonconflict.AbandonConflictTest::run_test(), txn_clone.TxnMallTest::run_test(), txn_doublespend.TxnMallTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), wallet-hd.WalletHDTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), wallet.WalletTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), addressindex.AddressIndexTest::run_test(), rest.RESTTest::run_test(), and walletbackup.WalletBackupTest::run_test().
Definition at line 113 of file rpcwallet.cpp.
Referenced by walletbackup.WalletBackupTest::do_one_round(), listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), keypool.KeyPoolTest::run_test(), keypool-hd.KeyPoolTest::run_test(), abandonconflict.AbandonConflictTest::run_test(), txn_clone.TxnMallTest::run_test(), txn_doublespend.TxnMallTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), wallet-hd.WalletHDTest::run_test(), listtransactions.ListTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), receivedby.ReceivedByTest::run_test(), wallet.WalletTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), zmq_test.ZMQTest::run_test(), rest.RESTTest::run_test(), maxuploadtarget.MaxUploadTest::run_test(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), bip68-sequence.BIP68Test::test_disable_flag(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs(), and bip68-sequence.BIP68Test::test_version2_relay().
Definition at line 224 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), wallet-hd.WalletHDTest::run_test(), and fundrawtransaction-hd.RawTransactionsTest::run_test().
Definition at line 701 of file rpcwallet.cpp.
Referenced by receivedby.ReceivedByTest::run_test().
Definition at line 641 of file rpcwallet.cpp.
Referenced by receivedby.ReceivedByTest::run_test().
Definition at line 1821 of file rpcwallet.cpp.
Referenced by listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), txn_clone.TxnMallTest::run_test(), txn_doublespend.TxnMallTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), wallet-hd.WalletHDTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), wallet.WalletTest::run_test(), and rawtransactions.RawTransactionsTest::run_test().
Definition at line 869 of file rpcwallet.cpp.
Referenced by abandonconflict.AbandonConflictTest::run_test(), and wallet.WalletTest::run_test().
Definition at line 2376 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), wallet-hd.WalletHDTest::run_test(), and wallet.WalletTest::run_test().
std::string HelpRequiringPassphrase | ( | ) |
Definition at line 35 of file rpcwallet.cpp.
Referenced by instantsendtoaddress(), keypoolrefill(), sendfrom(), sendmany(), sendtoaddress(), signmessage(), signrawtransaction(), and spork().
Definition at line 476 of file rpcwallet.cpp.
Definition at line 2455 of file rpcwallet.cpp.
Definition at line 1963 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), and fundrawtransaction-hd.RawTransactionsTest::run_test().
Definition at line 1645 of file rpcwallet.cpp.
Referenced by wallet.WalletTest::run_test().
Definition at line 534 of file rpcwallet.cpp.
Definition at line 2300 of file rpcwallet.cpp.
Referenced by wallet.WalletTest::run_test().
Definition at line 1214 of file rpcwallet.cpp.
Referenced by listreceivedbyaccount(), and listreceivedbyaddress().
Definition at line 1380 of file rpcwallet.cpp.
Referenced by receivedby.ReceivedByTest::run_test().
Definition at line 1339 of file rpcwallet.cpp.
Referenced by receivedby.ReceivedByTest::run_test().
Definition at line 1726 of file rpcwallet.cpp.
Referenced by wallet.WalletTest::run_test().
void ListTransactions | ( | const CWalletTx & | wtx, |
const string & | strAccount, | ||
int | nMinDepth, | ||
bool | fLong, | ||
UniValue & | ret, | ||
const isminefilter & | filter | ||
) |
Definition at line 1425 of file rpcwallet.cpp.
Referenced by gettransaction(), listsinceblock(), and listtransactions().
Definition at line 1518 of file rpcwallet.cpp.
Definition at line 2533 of file rpcwallet.cpp.
Referenced by pruning.PruneTest::create_chain_with_staleblocks(), abandonconflict.AbandonConflictTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), wallet.WalletTest::run_test(), addressindex.AddressIndexTest::run_test(), txindex.TxIndexTest::run_test(), spentindex.SpentIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), bip68-sequence.BIP68Test::test_disable_flag(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 2216 of file rpcwallet.cpp.
Referenced by wallet.WalletTest::run_test().
|
static |
Definition at line 2000 of file rpcwallet.cpp.
Referenced by walletpassphrase().
|
static |
Definition at line 1418 of file rpcwallet.cpp.
Referenced by ListTransactions().
Definition at line 885 of file rpcwallet.cpp.
Definition at line 2505 of file rpcwallet.cpp.
Referenced by wallet.WalletTest::run_test().
Definition at line 958 of file rpcwallet.cpp.
Referenced by txn_clone.TxnMallTest::run_test(), and txn_doublespend.TxnMallTest::run_test().
Definition at line 1024 of file rpcwallet.cpp.
Referenced by listtransactions.ListTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), wallet.WalletTest::run_test(), and bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs().
|
static |
Definition at line 374 of file rpcwallet.cpp.
Referenced by instantsendtoaddress(), sendfrom(), and sendtoaddress().
Definition at line 409 of file rpcwallet.cpp.
Referenced by walletbackup.WalletBackupTest::one_send(), listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), abandonconflict.AbandonConflictTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), wallet-hd.WalletHDTest::run_test(), listtransactions.ListTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), receivedby.ReceivedByTest::run_test(), wallet.WalletTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), addressindex.AddressIndexTest::run_test(), zmq_test.ZMQTest::run_test(), rest.RESTTest::run_test(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), bip68-sequence.BIP68Test::test_disable_flag(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 259 of file rpcwallet.cpp.
Definition at line 2349 of file rpcwallet.cpp.
Referenced by txn_clone.TxnMallTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), and wallet.WalletTest::run_test().
Definition at line 585 of file rpcwallet.cpp.
Definition at line 2120 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), and fundrawtransaction.RawTransactionsTest::run_test().
Definition at line 2007 of file rpcwallet.cpp.
Referenced by keypool-hd.KeyPoolTest::run_test(), keypool.KeyPoolTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), and fundrawtransaction.RawTransactionsTest::run_test().
Definition at line 2074 of file rpcwallet.cpp.
Definition at line 60 of file rpcwallet.cpp.
Referenced by gettransaction(), and ListTransactions().
|
static |
Definition at line 33 of file rpcwallet.cpp.
Referenced by LockWallet(), walletlock(), and walletpassphrase().
int64_t nWalletUnlockTime |
Definition at line 32 of file rpcwallet.cpp.
Referenced by getinfo(), getwalletinfo(), LockWallet(), walletlock(), and walletpassphrase().