Merge branch 'master' into merge-mining

This commit is contained in:
SChernykh 2024-02-24 19:11:52 +01:00
commit 45dabd8ddb
5 changed files with 9 additions and 9 deletions

View file

@ -28,12 +28,12 @@ class ConsoleCommands : public TCPServer
{
public:
explicit ConsoleCommands(p2pool* pool);
~ConsoleCommands();
~ConsoleCommands() override;
struct ConsoleClient : public Client
{
ConsoleClient() : Client(m_consoleReadBuf, sizeof(m_consoleReadBuf)) {}
~ConsoleClient() {}
~ConsoleClient() override {}
static Client* allocate() { return new ConsoleClient(); }

View file

@ -59,7 +59,7 @@ public:
};
explicit P2PServer(p2pool *pool);
~P2PServer();
~P2PServer() override;
void add_cached_block(const PoolBlock& block);
void clear_cached_blocks();
@ -72,7 +72,7 @@ public:
struct P2PClient : public Client
{
P2PClient();
~P2PClient();
~P2PClient() override;
static Client* allocate() { return new P2PClient(); }
virtual size_t size() const override { return sizeof(P2PClient); }

View file

@ -40,7 +40,7 @@ class p2pool : public MinerCallbackHandler, public nocopy_nomove
{
public:
p2pool(int argc, char* argv[]);
~p2pool();
~p2pool() override;
int run();

View file

@ -48,7 +48,7 @@ class RandomX_Hasher : public RandomX_Hasher_Base
{
public:
explicit RandomX_Hasher(p2pool* pool);
~RandomX_Hasher();
~RandomX_Hasher() override;
void set_seed_async(const hash& seed) override;
void set_seed(const hash& seed);
@ -98,7 +98,7 @@ class RandomX_Hasher_RPC : public RandomX_Hasher_Base
{
public:
explicit RandomX_Hasher_RPC(p2pool* pool);
~RandomX_Hasher_RPC();
~RandomX_Hasher_RPC() override;
bool calculate(const void* data_ptr, size_t size, uint64_t height, const hash& seed, hash& h, bool force_light_mode) override;

View file

@ -32,14 +32,14 @@ class StratumServer : public TCPServer
{
public:
explicit StratumServer(p2pool *pool);
~StratumServer();
~StratumServer() override;
void on_block(const BlockTemplate& block);
struct StratumClient : public Client
{
StratumClient();
FORCEINLINE ~StratumClient() {}
FORCEINLINE ~StratumClient() override {}
static Client* allocate() { return new StratumClient(); }
virtual size_t size() const override { return sizeof(StratumClient); }