Fix daemon compile errors

This commit is contained in:
root
2026-04-28 04:30:48 +00:00
parent 7580f2c313
commit 84cbc07fd5
3 changed files with 16 additions and 13 deletions
+1
View File
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <deque>
#include <future>
#include <event2/event.h>
+12 -10
View File
@@ -16,10 +16,10 @@
#include "sync.h"
#include "util.h"
#include <cstdint>
#include <std::map>
#include <std::string>
#include <map>
#include <string>
#include <utility>
#include <std::vector>
#include <vector>
extern CCriticalSection cs_budget;
class CBudgetManager;
@@ -416,7 +416,7 @@ public:
CFinalizedBudgetBroadcast(const CFinalizedBudget& other);
CFinalizedBudgetBroadcast(std::string strBudgetNameIn, int nBlockStartIn, std::vector<CTxBudgetPayment> vecBudgetPaymentsIn, uint256 nFeeTXHashIn);
void std::swap(CFinalizedBudgetBroadcast& first, CFinalizedBudgetBroadcast& second) // nothrow
friend void swap(CFinalizedBudgetBroadcast& first, CFinalizedBudgetBroadcast& second) // nothrow
{
// enable ADL (not necessary in our case, but good practice)
using std::swap;
@@ -425,15 +425,16 @@ public:
// the two classes are effectively swapped
std::swap(first.strBudgetName, second.strBudgetName);
std::swap(first.nBlockStart, second.nBlockStart);
first.mapVotes.std::swap(second.mapVotes);
first.vecBudgetPayments.std::swap(second.vecBudgetPayments);
first.mapVotes.swap(second.mapVotes);
first.vecBudgetPayments.swap(second.vecBudgetPayments);
std::swap(first.nFeeTXHash, second.nFeeTXHash);
std::swap(first.nTime, second.nTime);
}
CFinalizedBudgetBroadcast& operator=(CFinalizedBudgetBroadcast from)
{
std::swap(*this, from);
using std::swap;
swap(*this, from);
return *this;
}
@@ -562,7 +563,7 @@ public:
CBudgetProposalBroadcast(const CBudgetProposalBroadcast& other) : CBudgetProposal(other) {}
CBudgetProposalBroadcast(std::string strProposalNameIn, std::string strURLIn, int nPaymentCount, CScript addressIn, CAmount nAmountIn, int nBlockStartIn, uint256 nFeeTXHashIn);
void std::swap(CBudgetProposalBroadcast& first, CBudgetProposalBroadcast& second) // nothrow
friend void swap(CBudgetProposalBroadcast& first, CBudgetProposalBroadcast& second) // nothrow
{
// enable ADL (not necessary in our case, but good practice)
using std::swap;
@@ -577,12 +578,13 @@ public:
std::swap(first.address, second.address);
std::swap(first.nTime, second.nTime);
std::swap(first.nFeeTXHash, second.nFeeTXHash);
first.mapVotes.std::swap(second.mapVotes);
first.mapVotes.swap(second.mapVotes);
}
CBudgetProposalBroadcast& operator=(CBudgetProposalBroadcast from)
{
std::swap(*this, from);
using std::swap;
swap(*this, from);
return *this;
}
+3 -3
View File
@@ -7,10 +7,10 @@
#ifndef AGRARIAN_BITCOIN_MINER_H
#define AGRARIAN_BITCOIN_MINER_H
#include <cstdint>
#include <std::string>
#include <std::vector>
#include <memory>
#include <string>
#include <utility>
#include <vector>
class CBlock;
class CBlockHeader;
class CBlockIndex;
@@ -35,4 +35,4 @@ void BitcoinMiner(CWallet* pwallet, bool fProofOfStake);
extern double dHashesPerSec;
extern int64_t nHPSTimerStart;
#endif // AGRARIAN_BITCOIN_MINER_H
#endif // AGRARIAN_BITCOIN_MINER_H