![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include "base58.h"#include "rpcserver.h"#include "init.h"#include "main.h"#include "sync.h"#include "wallet.h"#include <fstream>#include <stdint.h>#include <boost/algorithm/string.hpp>#include <boost/date_time/posix_time/posix_time.hpp>#include "json/json_spirit_value.h"
Include dependency graph for rpcdump.cpp:Go to the source code of this file.
Functions | |
| void | EnsureWalletIsUnlocked () |
| static std::string | EncodeDumpTime (int64_t nTime) |
| static int64_t | DecodeDumpTime (const std::string &str) |
| static std::string | EncodeDumpString (const std::string &str) |
| std::string | DecodeDumpString (const std::string &str) |
| Value | importprivkey (const Array ¶ms, bool fHelp) |
| Value | importwallet (const Array ¶ms, bool fHelp) |
| Value | dumpprivkey (const Array ¶ms, bool fHelp) |
| Value | dumpwallet (const Array ¶ms, bool fHelp) |
| std::string DecodeDumpString | ( | const std::string & | str | ) |
Definition at line 53 of file rpcdump.cpp.
Referenced by importwallet().
Here is the caller graph for this function:
|
static |
Definition at line 28 of file rpcdump.cpp.
Referenced by importwallet().
Here is the caller graph for this function:| Value dumpprivkey | ( | const Array & | params, |
| bool | fHelp | ||
| ) |
Definition at line 234 of file rpcdump.cpp.
References EnsureWalletIsUnlocked(), CCryptoKeyStore::GetKey(), CBitcoinAddress::GetKeyID(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), pwalletMain, RPC_INVALID_ADDRESS_OR_KEY, RPC_TYPE_ERROR, RPC_WALLET_ERROR, CBase58Data::SetString(), and CBase58Data::ToString().
Here is the call graph for this function:| Value dumpwallet | ( | const Array & | params, |
| bool | fHelp | ||
| ) |
Definition at line 267 of file rpcdump.cpp.
References chainActive, CLIENT_BUILD, CLIENT_DATE, EncodeDumpString(), EncodeDumpTime(), EnsureWalletIsUnlocked(), CWallet::GetAllReserveKeys(), CBlockIndex::GetBlockHash(), CCryptoKeyStore::GetKey(), CWallet::GetKeyBirthTimes(), GetTime(), CChain::Height(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), CWallet::mapAddressBook, CBlockIndex::nTime, pwalletMain, RPC_INVALID_PARAMETER, strprintf, CChain::Tip(), CBase58Data::ToString(), and base_uint< BITS >::ToString().
Here is the call graph for this function:
|
static |
Definition at line 41 of file rpcdump.cpp.
References HexStr().
Referenced by dumpwallet().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 24 of file rpcdump.cpp.
References DateTimeStrFormat().
Referenced by dumpwallet().
Here is the call graph for this function:
Here is the caller graph for this function:| void EnsureWalletIsUnlocked | ( | ) |
Definition at line 36 of file rpcwallet.cpp.
Referenced by dumpprivkey(), dumpwallet(), importprivkey(), importwallet(), and signrawtransaction().
Here is the caller graph for this function:| Value importprivkey | ( | const Array & | params, |
| bool | fHelp | ||
| ) |
Definition at line 67 of file rpcdump.cpp.
References CWallet::AddKeyPubKey(), chainActive, cs_main, CWallet::cs_wallet, EnsureWalletIsUnlocked(), CChain::Genesis(), CPubKey::GetID(), CBitcoinSecret::GetKey(), CKey::GetPubKey(), CCryptoKeyStore::HaveKey(), HelpExampleCli(), HelpExampleRpc(), CKey::IsValid(), JSONRPCError(), LOCK2, CWallet::mapKeyMetadata, CWallet::MarkDirty(), CWallet::nTimeFirstKey, pwalletMain, RPC_INVALID_ADDRESS_OR_KEY, RPC_WALLET_ERROR, CWallet::ScanForWalletTransactions(), CWallet::SetAddressBook(), and CBitcoinSecret::SetString().
Here is the call graph for this function:| Value importwallet | ( | const Array & | params, |
| bool | fHelp | ||
| ) |
Definition at line 136 of file rpcdump.cpp.
References _(), CWallet::AddKeyPubKey(), chainActive, DecodeDumpString(), DecodeDumpTime(), EnsureWalletIsUnlocked(), CPubKey::GetID(), CBitcoinSecret::GetKey(), CKey::GetPubKey(), CCryptoKeyStore::HaveKey(), CChain::Height(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), LogPrintf, CWallet::mapKeyMetadata, CWallet::MarkDirty(), CBlockIndex::nHeight, CBlockIndex::nTime, CWallet::nTimeFirstKey, CBlockIndex::pprev, pwalletMain, RPC_INVALID_PARAMETER, RPC_WALLET_ERROR, CWallet::ScanForWalletTransactions(), CWallet::SetAddressBook(), CBitcoinSecret::SetString(), CWallet::ShowProgress, and CChain::Tip().
Here is the call graph for this function:
1.8.8