mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #4617
3ffbec15
rpc: init m_rpc_version in Message ctor (moneromooo-monero)bfa2dce1
rpc: remove unused ctors (moneromooo-monero)7cc39845
account: init creation timestamp to 0 (moneromooo-monero)32123789
wallet2: initialize some scalar fields in ctor where appropriate (moneromooo-monero)4eca42b2
blockchain_db: initialize m_hardfork in ctor just in case (moneromooo-monero)
This commit is contained in:
commit
fc06c5daf8
@ -544,7 +544,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief An empty constructor.
|
* @brief An empty constructor.
|
||||||
*/
|
*/
|
||||||
BlockchainDB(): m_open(false) { }
|
BlockchainDB(): m_hardfork(NULL), m_open(false) { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief An empty destructor.
|
* @brief An empty destructor.
|
||||||
|
@ -136,6 +136,7 @@ DISABLE_VS_WARNINGS(4244 4345)
|
|||||||
void account_base::set_null()
|
void account_base::set_null()
|
||||||
{
|
{
|
||||||
m_keys = account_keys();
|
m_keys = account_keys();
|
||||||
|
m_creation_timestamp = 0;
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
void account_base::forget_spend_key()
|
void account_base::forget_spend_key()
|
||||||
|
@ -782,9 +782,6 @@ namespace cryptonote
|
|||||||
std::string tx_as_hex;
|
std::string tx_as_hex;
|
||||||
bool do_not_relay;
|
bool do_not_relay;
|
||||||
|
|
||||||
request() {}
|
|
||||||
explicit request(const transaction &);
|
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
KV_SERIALIZE(tx_as_hex)
|
KV_SERIALIZE(tx_as_hex)
|
||||||
KV_SERIALIZE_OPT(do_not_relay, false)
|
KV_SERIALIZE_OPT(do_not_relay, false)
|
||||||
|
@ -65,7 +65,7 @@ namespace rpc
|
|||||||
static const char* STATUS_BAD_REQUEST;
|
static const char* STATUS_BAD_REQUEST;
|
||||||
static const char* STATUS_BAD_JSON;
|
static const char* STATUS_BAD_JSON;
|
||||||
|
|
||||||
Message() : status(STATUS_OK) { }
|
Message() : status(STATUS_OK), rpc_version(0) { }
|
||||||
|
|
||||||
virtual ~Message() { }
|
virtual ~Message() { }
|
||||||
|
|
||||||
|
@ -813,6 +813,7 @@ wallet_keys_unlocker::~wallet_keys_unlocker()
|
|||||||
wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended):
|
wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended):
|
||||||
m_multisig_rescan_info(NULL),
|
m_multisig_rescan_info(NULL),
|
||||||
m_multisig_rescan_k(NULL),
|
m_multisig_rescan_k(NULL),
|
||||||
|
m_upper_transaction_weight_limit(0),
|
||||||
m_run(true),
|
m_run(true),
|
||||||
m_callback(0),
|
m_callback(0),
|
||||||
m_trusted_daemon(false),
|
m_trusted_daemon(false),
|
||||||
@ -845,6 +846,9 @@ wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended):
|
|||||||
m_is_initialized(false),
|
m_is_initialized(false),
|
||||||
m_kdf_rounds(kdf_rounds),
|
m_kdf_rounds(kdf_rounds),
|
||||||
is_old_file_format(false),
|
is_old_file_format(false),
|
||||||
|
m_watch_only(false),
|
||||||
|
m_multisig(false),
|
||||||
|
m_multisig_threshold(0),
|
||||||
m_node_rpc_proxy(m_http_client, m_daemon_rpc_mutex),
|
m_node_rpc_proxy(m_http_client, m_daemon_rpc_mutex),
|
||||||
m_subaddress_lookahead_major(SUBADDRESS_LOOKAHEAD_MAJOR),
|
m_subaddress_lookahead_major(SUBADDRESS_LOOKAHEAD_MAJOR),
|
||||||
m_subaddress_lookahead_minor(SUBADDRESS_LOOKAHEAD_MINOR),
|
m_subaddress_lookahead_minor(SUBADDRESS_LOOKAHEAD_MINOR),
|
||||||
|
Loading…
Reference in New Issue
Block a user