1
0
Fork 0
forked from lthn/blockchain

revoked unneeded changes

This commit is contained in:
cryptozoidberg 2023-10-26 12:56:37 +00:00
parent 54d229f746
commit f19acdee4b
2 changed files with 13 additions and 31 deletions

View file

@ -34,6 +34,19 @@
//TODO: global objects, subject to refactoring
struct plain_wallet_instance
{
plain_wallet_instance() :initialized(false), gjobs_counter(1)
{}
wallets_manager gwm;
std::atomic<bool> initialized;
std::atomic<uint64_t> gjobs_counter;
std::map<uint64_t, std::string> gjobs;
epee::critical_section gjobs_lock;
};
std::shared_ptr<plain_wallet::plain_wallet_instance> ginstance_ptr;
#define GET_INSTANCE_PTR(ptr_name) \

View file

@ -1,31 +0,0 @@
// Copyright (c) 2014-2020 Zano Project
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <string>
#include "wallet2.h"
namespace plain_wallet
{
struct plain_wallet_instance
{
plain_wallet_instance() :initialized(false), gjobs_counter(1)
{}
wallets_manager gwm;
std::atomic<bool> initialized;
std::atomic<uint64_t> gjobs_counter;
std::map<uint64_t, std::string> gjobs;
epee::critical_section gjobs_lock;
};
extern std::shared_ptr<plain_wallet_instance> ginstance_ptr;
}