wallet: automatically use low priority if safe (no backlog & recent blocks not full)
This commit is contained in:
@@ -838,6 +838,8 @@ namespace tools
|
||||
uint32_t get_confirm_backlog_threshold() const { return m_confirm_backlog_threshold; };
|
||||
bool confirm_export_overwrite() const { return m_confirm_export_overwrite; }
|
||||
void confirm_export_overwrite(bool always) { m_confirm_export_overwrite = always; }
|
||||
bool auto_low_priority() const { return m_auto_low_priority; }
|
||||
void auto_low_priority(bool value) { m_auto_low_priority = value; }
|
||||
|
||||
bool get_tx_key(const crypto::hash &txid, crypto::secret_key &tx_key, std::vector<crypto::secret_key> &additional_tx_keys) const;
|
||||
void check_tx_key(const crypto::hash &txid, const crypto::secret_key &tx_key, const std::vector<crypto::secret_key> &additional_tx_keys, const cryptonote::account_public_address &address, uint64_t &received, bool &in_pool, uint64_t &confirmations);
|
||||
@@ -962,6 +964,7 @@ namespace tools
|
||||
uint64_t get_fee_multiplier(uint32_t priority, int fee_algorithm = -1) const;
|
||||
uint64_t get_per_kb_fee() const;
|
||||
uint64_t adjust_mixin(uint64_t mixin) const;
|
||||
uint32_t adjust_priority(uint32_t priority);
|
||||
|
||||
// Light wallet specific functions
|
||||
// fetch unspent outs from lw node and store in m_transfers
|
||||
@@ -1122,6 +1125,7 @@ namespace tools
|
||||
bool m_confirm_backlog;
|
||||
uint32_t m_confirm_backlog_threshold;
|
||||
bool m_confirm_export_overwrite;
|
||||
bool m_auto_low_priority;
|
||||
bool m_is_initialized;
|
||||
NodeRPCProxy m_node_rpc_proxy;
|
||||
std::unordered_set<crypto::hash> m_scanned_pool_txs[2];
|
||||
|
||||
Reference in New Issue
Block a user