Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
rpcdump.cpp File Reference
#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 &params, bool fHelp)
 
Value importwallet (const Array &params, bool fHelp)
 
Value dumpprivkey (const Array &params, bool fHelp)
 
Value dumpwallet (const Array &params, bool fHelp)
 

Function Documentation

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 int64_t DecodeDumpTime ( const std::string &  str)
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 
)
static std::string EncodeDumpString ( const std::string &  str)
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 std::string EncodeDumpTime ( int64_t  nTime)
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 
)
Value importwallet ( const Array &  params,
bool  fHelp 
)