Merge pull request #4617
3ffbec15rpc: init m_rpc_version in Message ctor (moneromooo-monero)bfa2dce1rpc: remove unused ctors (moneromooo-monero)7cc39845account: init creation timestamp to 0 (moneromooo-monero)32123789wallet2: initialize some scalar fields in ctor where appropriate (moneromooo-monero)4eca42b2blockchain_db: initialize m_hardfork in ctor just in case (moneromooo-monero)
This commit is contained in:
@@ -782,9 +782,6 @@ namespace cryptonote
|
||||
std::string tx_as_hex;
|
||||
bool do_not_relay;
|
||||
|
||||
request() {}
|
||||
explicit request(const transaction &);
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(tx_as_hex)
|
||||
KV_SERIALIZE_OPT(do_not_relay, false)
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ namespace rpc
|
||||
static const char* STATUS_BAD_REQUEST;
|
||||
static const char* STATUS_BAD_JSON;
|
||||
|
||||
Message() : status(STATUS_OK) { }
|
||||
Message() : status(STATUS_OK), rpc_version(0) { }
|
||||
|
||||
virtual ~Message() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user