From 9dd4f107b63b16eeab5d8ad805bc71c0eaea3ffb Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 26 Oct 2023 14:32:56 +0000 Subject: [PATCH] Fix compilation issue --- src/wallet/plain_wallet_api.cpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index e8c923a3..deb09878 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -33,20 +33,7 @@ //TODO: global objects, subject to refactoring -struct plain_wallet_instance -{ - plain_wallet_instance() :initialized(false), gjobs_counter(1) - {} - wallets_manager gwm; - std::atomic initialized; - std::atomic gjobs_counter; - std::map gjobs; - epee::critical_section gjobs_lock; -}; - - -std::shared_ptr ginstance_ptr; #define GET_INSTANCE_PTR(ptr_name) \ auto ptr_name = std::atomic_load(&ginstance_ptr); \ @@ -71,6 +58,22 @@ void static_destroy_handler() namespace plain_wallet { + struct plain_wallet_instance + { + plain_wallet_instance() :initialized(false), gjobs_counter(1) + {} + wallets_manager gwm; + std::atomic initialized; + + std::atomic gjobs_counter; + std::map gjobs; + epee::critical_section gjobs_lock; + }; + + std::shared_ptr ginstance_ptr; + + + typedef epee::json_rpc::response error_response;