diff --git a/rai/node/wallet.cpp b/rai/node/wallet.cpp index e7c15992..9b001dc8 100644 --- a/rai/node/wallet.cpp +++ b/rai/node/wallet.cpp @@ -1201,8 +1201,8 @@ void rai::wallet::work_generate (rai::account const & account_a, rai::block_hash rai::wallets::wallets (bool & error_a, rai::node & node_a) : observer ([](bool) {}), node (node_a), -thread ([this] () { do_wallet_actions (); }), -stopped (false) +stopped (false), +thread ([this] () { do_wallet_actions (); }) { if (!error_a) { diff --git a/rai/node/wallet.hpp b/rai/node/wallet.hpp index 40ec70ba..67e5b895 100644 --- a/rai/node/wallet.hpp +++ b/rai/node/wallet.hpp @@ -175,8 +175,8 @@ public: rai::kdf kdf; MDB_dbi handle; rai::node & node; - std::thread thread; bool stopped; + std::thread thread; static rai::uint128_t const generate_priority; static rai::uint128_t const high_priority; };