diff options
author | gdmojo <78273629+gdmojo@users.noreply.github.com> | 2021-01-31 11:48:05 +0000 |
---|---|---|
committer | gdmojo <78273629+gdmojo@users.noreply.github.com> | 2021-02-20 18:23:06 +0000 |
commit | f346e3ec0e53707655538eb2681e8148dd650004 (patch) | |
tree | fd6057183404b440fc16f0913121ead903304071 /src/wallet/wallet2.h | |
parent | Merge pull request #7260 (diff) | |
download | monero-f346e3ec0e53707655538eb2681e8148dd650004.tar.xz |
wallet_rpc_payments: implement multithreading
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 2e455c40c..305c589c6 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1426,7 +1426,7 @@ private: bool get_rpc_payment_info(bool mining, bool &payment_required, uint64_t &credits, uint64_t &diff, uint64_t &credits_per_hash_found, cryptonote::blobdata &hashing_blob, uint64_t &height, uint64_t &seed_height, crypto::hash &seed_hash, crypto::hash &next_seed_hash, uint32_t &cookie); bool daemon_requires_payment(); bool make_rpc_payment(uint32_t nonce, uint32_t cookie, uint64_t &credits, uint64_t &balance); - bool search_for_rpc_payment(uint64_t credits_target, const std::function<bool(uint64_t, uint64_t)> &startfunc, const std::function<bool(unsigned)> &contfunc, const std::function<bool(uint64_t)> &foundfunc = NULL, const std::function<void(const std::string&)> &errorfunc = NULL); + bool search_for_rpc_payment(uint64_t credits_target, uint32_t n_threads, const std::function<bool(uint64_t, uint64_t)> &startfunc, const std::function<bool(unsigned)> &contfunc, const std::function<bool(uint64_t)> &foundfunc = NULL, const std::function<void(const std::string&)> &errorfunc = NULL); template<typename T> void handle_payment_changes(const T &res, std::true_type) { if (res.status == CORE_RPC_STATUS_OK || res.status == CORE_RPC_STATUS_PAYMENT_REQUIRED) m_rpc_payment_state.credits = res.credits; |