2019-01-29 15:53:14 +01:00
|
|
|
// Copyright (c) 2014-2019 The Dash Core developers
|
2017-05-05 13:26:27 +02:00
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef PRIVATESENDCLIENT_H
|
|
|
|
#define PRIVATESENDCLIENT_H
|
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
#include "privatesend-util.h"
|
2017-05-05 13:26:27 +02:00
|
|
|
#include "privatesend.h"
|
|
|
|
#include "wallet/wallet.h"
|
|
|
|
|
2018-12-17 15:45:36 +01:00
|
|
|
#include "evo/deterministicmns.h"
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
class CPrivateSendClientManager;
|
Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537)
* net: move CBanDB and CAddrDB out of net.h/cpp
This will eventually solve a circular dependency
* net: Create CConnman to encapsulate p2p connections
* net: Move socket binding into CConnman
* net: move OpenNetworkConnection into CConnman
* net: move ban and addrman functions into CConnman
* net: Add oneshot functions to CConnman
* net: move added node functions to CConnman
* net: Add most functions needed for vNodes to CConnman
* net: handle nodesignals in CConnman
* net: Pass CConnection to wallet rather than using the global
* net: Add rpc error for missing/disabled p2p functionality
* net: Pass CConnman around as needed
* gui: add NodeID to the peer table
* net: create generic functor accessors and move vNodes to CConnman
* net: move whitelist functions into CConnman
* net: move nLastNodeId to CConnman
* net: move nLocalHostNonce to CConnman
This behavior seems to have been quite racy and broken.
Move nLocalHostNonce into CNode, and check received nonces against all
non-fully-connected nodes. If there's a match, assume we've connected
to ourself.
* net: move messageHandlerCondition to CConnman
* net: move send/recv statistics to CConnman
* net: move SendBufferSize/ReceiveFloodSize to CConnman
* net: move nLocalServices/nRelevantServices to CConnman
These are in-turn passed to CNode at connection time. This allows us to offer
different services to different peers (or test the effects of doing so).
* net: move semOutbound and semMasternodeOutbound to CConnman
* net: SocketSendData returns written size
* net: move max/max-outbound to CConnman
* net: Pass best block known height into CConnman
CConnman then passes the current best height into CNode at creation time.
This way CConnman/CNode have no dependency on main for height, and the signals
only move in one direction.
This also helps to prevent identity leakage a tiny bit. Before this change, an
attacker could theoretically make 2 connections on different interfaces. They
would connect fully on one, and only establish the initial connection on the
other. Once they receive a new block, they would relay it to your first
connection, and immediately commence the version handshake on the second. Since
the new block height is reflected immediately, they could attempt to learn
whether the two connections were correlated.
This is, of course, incredibly unlikely to work due to the small timings
involved and receipt from other senders. But it doesn't hurt to lock-in
nBestHeight at the time of connection, rather than letting the remote choose
the time.
* net: pass CClientUIInterface into CConnman
* net: Drop StartNode/StopNode and use CConnman directly
* net: Introduce CConnection::Options to avoid passing so many params
* net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options
* net: move vNodesDisconnected into CConnman
* Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
* Convert ForEachNode* functions to take a templated function argument rather than a std::function to eliminate std::function overhead
* net: move MAX_FEELER_CONNECTIONS into connman
2017-07-21 11:35:19 +02:00
|
|
|
class CConnman;
|
2018-12-17 15:45:36 +01:00
|
|
|
class CNode;
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
static const int MIN_PRIVATESEND_SESSIONS = 1;
|
|
|
|
static const int MIN_PRIVATESEND_ROUNDS = 2;
|
|
|
|
static const int MIN_PRIVATESEND_AMOUNT = 2;
|
2019-04-30 15:19:23 +02:00
|
|
|
static const int MIN_PRIVATESEND_DENOMS = 10;
|
2018-11-05 10:29:07 +01:00
|
|
|
static const int MIN_PRIVATESEND_LIQUIDITY = 0;
|
|
|
|
static const int MAX_PRIVATESEND_SESSIONS = 10;
|
|
|
|
static const int MAX_PRIVATESEND_ROUNDS = 16;
|
2019-04-30 15:19:23 +02:00
|
|
|
static const int MAX_PRIVATESEND_DENOMS = 100000;
|
2018-11-05 10:29:07 +01:00
|
|
|
static const int MAX_PRIVATESEND_AMOUNT = MAX_MONEY / COIN;
|
|
|
|
static const int MAX_PRIVATESEND_LIQUIDITY = 100;
|
|
|
|
static const int DEFAULT_PRIVATESEND_SESSIONS = 4;
|
|
|
|
static const int DEFAULT_PRIVATESEND_ROUNDS = 4;
|
|
|
|
static const int DEFAULT_PRIVATESEND_AMOUNT = 1000;
|
2019-04-30 15:19:23 +02:00
|
|
|
static const int DEFAULT_PRIVATESEND_DENOMS = 300;
|
2018-11-05 10:29:07 +01:00
|
|
|
static const int DEFAULT_PRIVATESEND_LIQUIDITY = 0;
|
2018-02-12 13:48:09 +01:00
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
static const bool DEFAULT_PRIVATESEND_MULTISESSION = false;
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
// Warn user if mixing in gui or try to create backup if mixing in daemon mode
|
|
|
|
// when we have only this many keys left
|
|
|
|
static const int PRIVATESEND_KEYS_THRESHOLD_WARNING = 100;
|
|
|
|
// Stop mixing completely, it's too dangerous to continue when we have only this many keys left
|
2018-11-05 10:29:07 +01:00
|
|
|
static const int PRIVATESEND_KEYS_THRESHOLD_STOP = 50;
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
// The main object for accessing mixing
|
2018-09-04 12:54:59 +02:00
|
|
|
extern CPrivateSendClientManager privateSendClient;
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-02-01 02:10:52 +01:00
|
|
|
class CPendingDsaRequest
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static const int TIMEOUT = 15;
|
|
|
|
|
|
|
|
CService addr;
|
2018-10-25 16:31:32 +02:00
|
|
|
CPrivateSendAccept dsa;
|
2018-02-01 02:10:52 +01:00
|
|
|
int64_t nTimeCreated;
|
|
|
|
|
|
|
|
public:
|
2018-11-05 10:29:07 +01:00
|
|
|
CPendingDsaRequest() :
|
2018-02-01 02:10:52 +01:00
|
|
|
addr(CService()),
|
2018-10-25 16:31:32 +02:00
|
|
|
dsa(CPrivateSendAccept()),
|
2018-02-01 02:10:52 +01:00
|
|
|
nTimeCreated(0)
|
2018-11-05 10:29:07 +01:00
|
|
|
{
|
|
|
|
}
|
2018-02-01 02:10:52 +01:00
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
CPendingDsaRequest(const CService& addr_, const CPrivateSendAccept& dsa_) :
|
2018-02-01 02:10:52 +01:00
|
|
|
addr(addr_),
|
2018-09-28 09:55:11 +02:00
|
|
|
dsa(dsa_),
|
|
|
|
nTimeCreated(GetTime())
|
2018-11-05 10:29:07 +01:00
|
|
|
{
|
|
|
|
}
|
2018-02-01 02:10:52 +01:00
|
|
|
|
|
|
|
CService GetAddr() { return addr; }
|
2018-10-25 16:31:32 +02:00
|
|
|
CPrivateSendAccept GetDSA() { return dsa; }
|
2018-02-01 02:10:52 +01:00
|
|
|
bool IsExpired() { return GetTime() - nTimeCreated > TIMEOUT; }
|
|
|
|
|
|
|
|
friend bool operator==(const CPendingDsaRequest& a, const CPendingDsaRequest& b)
|
|
|
|
{
|
|
|
|
return a.addr == b.addr && a.dsa == b.dsa;
|
|
|
|
}
|
|
|
|
friend bool operator!=(const CPendingDsaRequest& a, const CPendingDsaRequest& b)
|
|
|
|
{
|
|
|
|
return !(a == b);
|
|
|
|
}
|
|
|
|
explicit operator bool() const
|
|
|
|
{
|
|
|
|
return *this != CPendingDsaRequest();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
class CPrivateSendClientSession : public CPrivateSendBaseSession
|
2017-05-05 13:26:27 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::vector<COutPoint> vecOutPointLocked;
|
|
|
|
|
|
|
|
int nEntriesCount;
|
|
|
|
bool fLastEntryAccepted;
|
|
|
|
|
|
|
|
std::string strLastMessage;
|
|
|
|
std::string strAutoDenomResult;
|
|
|
|
|
2018-12-17 15:45:36 +01:00
|
|
|
CDeterministicMNCPtr mixingMasternode;
|
2017-05-05 13:26:27 +02:00
|
|
|
CMutableTransaction txMyCollateral; // client side collateral
|
2018-02-01 02:10:52 +01:00
|
|
|
CPendingDsaRequest pendingDsaRequest;
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2017-09-11 16:14:55 +02:00
|
|
|
CKeyHolderStorage keyHolderStorage; // storage for keys used in PrepareDenominate
|
|
|
|
|
2017-05-05 13:26:27 +02:00
|
|
|
/// Create denominations
|
2019-04-30 15:19:23 +02:00
|
|
|
bool CreateDenominated(CAmount nBalanceToDenominate, CConnman& connman);
|
|
|
|
bool CreateDenominated(CAmount nBalanceToDenominate, const CompactTallyItem& tallyItem, bool fCreateMixingCollaterals, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
/// Split up large inputs or make fee sized inputs
|
Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537)
* net: move CBanDB and CAddrDB out of net.h/cpp
This will eventually solve a circular dependency
* net: Create CConnman to encapsulate p2p connections
* net: Move socket binding into CConnman
* net: move OpenNetworkConnection into CConnman
* net: move ban and addrman functions into CConnman
* net: Add oneshot functions to CConnman
* net: move added node functions to CConnman
* net: Add most functions needed for vNodes to CConnman
* net: handle nodesignals in CConnman
* net: Pass CConnection to wallet rather than using the global
* net: Add rpc error for missing/disabled p2p functionality
* net: Pass CConnman around as needed
* gui: add NodeID to the peer table
* net: create generic functor accessors and move vNodes to CConnman
* net: move whitelist functions into CConnman
* net: move nLastNodeId to CConnman
* net: move nLocalHostNonce to CConnman
This behavior seems to have been quite racy and broken.
Move nLocalHostNonce into CNode, and check received nonces against all
non-fully-connected nodes. If there's a match, assume we've connected
to ourself.
* net: move messageHandlerCondition to CConnman
* net: move send/recv statistics to CConnman
* net: move SendBufferSize/ReceiveFloodSize to CConnman
* net: move nLocalServices/nRelevantServices to CConnman
These are in-turn passed to CNode at connection time. This allows us to offer
different services to different peers (or test the effects of doing so).
* net: move semOutbound and semMasternodeOutbound to CConnman
* net: SocketSendData returns written size
* net: move max/max-outbound to CConnman
* net: Pass best block known height into CConnman
CConnman then passes the current best height into CNode at creation time.
This way CConnman/CNode have no dependency on main for height, and the signals
only move in one direction.
This also helps to prevent identity leakage a tiny bit. Before this change, an
attacker could theoretically make 2 connections on different interfaces. They
would connect fully on one, and only establish the initial connection on the
other. Once they receive a new block, they would relay it to your first
connection, and immediately commence the version handshake on the second. Since
the new block height is reflected immediately, they could attempt to learn
whether the two connections were correlated.
This is, of course, incredibly unlikely to work due to the small timings
involved and receipt from other senders. But it doesn't hurt to lock-in
nBestHeight at the time of connection, rather than letting the remote choose
the time.
* net: pass CClientUIInterface into CConnman
* net: Drop StartNode/StopNode and use CConnman directly
* net: Introduce CConnection::Options to avoid passing so many params
* net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options
* net: move vNodesDisconnected into CConnman
* Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
* Convert ForEachNode* functions to take a templated function argument rather than a std::function to eliminate std::function overhead
* net: move MAX_FEELER_CONNECTIONS into connman
2017-07-21 11:35:19 +02:00
|
|
|
bool MakeCollateralAmounts(CConnman& connman);
|
|
|
|
bool MakeCollateralAmounts(const CompactTallyItem& tallyItem, bool fTryDenominated, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
bool JoinExistingQueue(CAmount nBalanceNeedsAnonymized, CConnman& connman);
|
2019-04-30 15:19:23 +02:00
|
|
|
bool StartNewQueue(CAmount nBalanceNeedsAnonymized, CConnman& connman);
|
2018-09-04 12:54:59 +02:00
|
|
|
|
2018-09-15 12:18:32 +02:00
|
|
|
/// step 0: select denominated inputs and txouts
|
2018-11-05 10:29:07 +01:00
|
|
|
bool SelectDenominate(std::string& strErrorRet, std::vector<std::pair<CTxDSIn, CTxOut> >& vecPSInOutPairsRet);
|
2017-05-05 13:26:27 +02:00
|
|
|
/// step 1: prepare denominated inputs and outputs
|
2018-11-05 10:29:07 +01:00
|
|
|
bool PrepareDenominate(int nMinRounds, int nMaxRounds, std::string& strErrorRet, const std::vector<std::pair<CTxDSIn, CTxOut> >& vecPSInOutPairsIn, std::vector<std::pair<CTxDSIn, CTxOut> >& vecPSInOutPairsRet, bool fDryRun = false);
|
2017-05-05 13:26:27 +02:00
|
|
|
/// step 2: send denominated inputs and outputs prepared in step 1
|
2018-11-05 10:29:07 +01:00
|
|
|
bool SendDenominate(const std::vector<std::pair<CTxDSIn, CTxOut> >& vecPSInOutPairsIn, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
/// Get Masternode updates about the progress of mixing
|
2018-11-05 10:29:07 +01:00
|
|
|
bool CheckPoolStateUpdate(PoolState nStateNew, int nEntriesCountNew, PoolStatusUpdate nStatusUpdate, PoolMessage nMessageID, int nSessionIDNew = 0);
|
2017-05-05 13:26:27 +02:00
|
|
|
// Set the 'state' value, with some logging and capturing when the state changed
|
|
|
|
void SetState(PoolState nStateNew);
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
/// Check for process
|
|
|
|
void CheckPool();
|
|
|
|
void CompletedTransaction(PoolMessage nMessageID);
|
|
|
|
|
2017-05-05 13:26:27 +02:00
|
|
|
/// As a client, check and sign the final transaction
|
2017-09-19 16:51:38 +02:00
|
|
|
bool SignFinalTransaction(const CTransaction& finalTransactionNew, CNode* pnode, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-10-25 16:31:32 +02:00
|
|
|
void RelayIn(const CPrivateSendEntry& entry, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
void SetNull();
|
|
|
|
|
|
|
|
public:
|
2018-09-04 12:54:59 +02:00
|
|
|
CPrivateSendClientSession() :
|
|
|
|
vecOutPointLocked(),
|
|
|
|
nEntriesCount(0),
|
|
|
|
fLastEntryAccepted(false),
|
|
|
|
strLastMessage(),
|
|
|
|
strAutoDenomResult(),
|
2018-12-17 15:45:36 +01:00
|
|
|
mixingMasternode(),
|
2018-09-04 12:54:59 +02:00
|
|
|
txMyCollateral(),
|
|
|
|
pendingDsaRequest(),
|
|
|
|
keyHolderStorage()
|
2018-11-05 10:29:07 +01:00
|
|
|
{
|
|
|
|
}
|
2018-09-04 12:54:59 +02:00
|
|
|
|
|
|
|
void ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vRecv, CConnman& connman);
|
|
|
|
|
|
|
|
void UnlockCoins();
|
|
|
|
|
|
|
|
void ResetPool();
|
|
|
|
|
|
|
|
std::string GetStatus(bool fWaitForBlock);
|
|
|
|
|
2018-12-17 15:45:36 +01:00
|
|
|
bool GetMixingMasternodeInfo(CDeterministicMNCPtr& ret) const;
|
2018-09-04 12:54:59 +02:00
|
|
|
|
|
|
|
/// Passively run mixing in the background according to the configuration in settings
|
2018-11-05 10:29:07 +01:00
|
|
|
bool DoAutomaticDenominating(CConnman& connman, bool fDryRun = false);
|
2018-09-04 12:54:59 +02:00
|
|
|
|
|
|
|
/// As a client, submit part of a future mixing transaction to a Masternode to start the process
|
|
|
|
bool SubmitDenominate(CConnman& connman);
|
|
|
|
|
|
|
|
bool ProcessPendingDsaRequest(CConnman& connman);
|
|
|
|
|
|
|
|
bool CheckTimeout();
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Used to keep track of current status of mixing pool
|
|
|
|
*/
|
|
|
|
class CPrivateSendClientManager : public CPrivateSendBaseManager
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
// Keep track of the used Masternodes
|
|
|
|
std::vector<COutPoint> vecMasternodesUsed;
|
|
|
|
|
|
|
|
std::vector<CAmount> vecDenominationsSkipped;
|
|
|
|
|
|
|
|
// TODO: or map<denom, CPrivateSendClientSession> ??
|
2018-09-20 14:40:43 +02:00
|
|
|
std::deque<CPrivateSendClientSession> deqSessions;
|
|
|
|
mutable CCriticalSection cs_deqsessions;
|
2018-09-04 12:54:59 +02:00
|
|
|
|
|
|
|
int nCachedLastSuccessBlock;
|
|
|
|
int nMinBlocksToWait; // how many blocks to wait after one successful mixing tx in non-multisession mode
|
|
|
|
std::string strAutoDenomResult;
|
|
|
|
|
|
|
|
// Keep track of current block height
|
|
|
|
int nCachedBlockHeight;
|
|
|
|
|
|
|
|
bool WaitForAnotherBlock();
|
|
|
|
|
|
|
|
// Make sure we have enough keys since last backup
|
|
|
|
bool CheckAutomaticBackup();
|
|
|
|
|
|
|
|
public:
|
|
|
|
int nPrivateSendSessions;
|
2017-05-05 13:26:27 +02:00
|
|
|
int nPrivateSendRounds;
|
|
|
|
int nPrivateSendAmount;
|
2019-04-30 15:19:23 +02:00
|
|
|
int nPrivateSendDenoms;
|
2017-05-05 13:26:27 +02:00
|
|
|
int nLiquidityProvider;
|
|
|
|
bool fEnablePrivateSend;
|
|
|
|
bool fPrivateSendMultiSession;
|
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
int nCachedNumBlocks; //used for the overview screen
|
2017-05-05 13:26:27 +02:00
|
|
|
bool fCreateAutoBackups; //builtin support for automatic backups
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
CPrivateSendClientManager() :
|
|
|
|
vecMasternodesUsed(),
|
|
|
|
vecDenominationsSkipped(),
|
2018-09-20 14:40:43 +02:00
|
|
|
deqSessions(),
|
2017-05-05 13:26:27 +02:00
|
|
|
nCachedLastSuccessBlock(0),
|
2017-09-03 15:30:58 +02:00
|
|
|
nMinBlocksToWait(1),
|
2018-09-04 12:54:59 +02:00
|
|
|
strAutoDenomResult(),
|
|
|
|
nCachedBlockHeight(0),
|
2017-05-05 13:26:27 +02:00
|
|
|
nPrivateSendRounds(DEFAULT_PRIVATESEND_ROUNDS),
|
|
|
|
nPrivateSendAmount(DEFAULT_PRIVATESEND_AMOUNT),
|
2019-04-30 15:19:23 +02:00
|
|
|
nPrivateSendDenoms(DEFAULT_PRIVATESEND_DENOMS),
|
2017-05-05 13:26:27 +02:00
|
|
|
nLiquidityProvider(DEFAULT_PRIVATESEND_LIQUIDITY),
|
|
|
|
fEnablePrivateSend(false),
|
|
|
|
fPrivateSendMultiSession(DEFAULT_PRIVATESEND_MULTISESSION),
|
|
|
|
nCachedNumBlocks(std::numeric_limits<int>::max()),
|
2018-09-04 12:54:59 +02:00
|
|
|
fCreateAutoBackups(true)
|
2018-11-05 10:29:07 +01:00
|
|
|
{
|
|
|
|
}
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2017-02-06 14:31:37 +01:00
|
|
|
void ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vRecv, CConnman& connman);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
bool IsDenomSkipped(const CAmount& nDenomValue);
|
|
|
|
void AddSkippedDenom(const CAmount& nDenomValue);
|
2017-05-05 13:26:27 +02:00
|
|
|
void ClearSkippedDenominations() { vecDenominationsSkipped.clear(); }
|
|
|
|
|
2017-09-03 15:30:58 +02:00
|
|
|
void SetMinBlocksToWait(int nMinBlocksToWaitIn) { nMinBlocksToWait = nMinBlocksToWaitIn; }
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
void ResetPool();
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
std::string GetStatuses();
|
|
|
|
std::string GetSessionDenoms();
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-12-17 15:45:36 +01:00
|
|
|
bool GetMixingMasternodesInfo(std::vector<CDeterministicMNCPtr>& vecDmnsRet) const;
|
2017-12-04 07:06:07 +01:00
|
|
|
|
2017-05-05 13:26:27 +02:00
|
|
|
/// Passively run mixing in the background according to the configuration in settings
|
2018-11-05 10:29:07 +01:00
|
|
|
bool DoAutomaticDenominating(CConnman& connman, bool fDryRun = false);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
void CheckTimeout();
|
|
|
|
|
2018-02-01 02:10:52 +01:00
|
|
|
void ProcessPendingDsaRequest(CConnman& connman);
|
|
|
|
|
2018-09-04 12:54:59 +02:00
|
|
|
void AddUsedMasternode(const COutPoint& outpointMn);
|
2018-12-17 15:47:57 +01:00
|
|
|
CDeterministicMNCPtr GetRandomNotUsedMasternode();
|
2018-09-04 12:54:59 +02:00
|
|
|
|
|
|
|
void UpdatedSuccessBlock();
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-11-05 10:29:07 +01:00
|
|
|
void UpdatedBlockTip(const CBlockIndex* pindex);
|
2017-05-05 13:26:27 +02:00
|
|
|
|
2018-07-16 14:47:37 +02:00
|
|
|
void DoMaintenance(CConnman& connman);
|
|
|
|
};
|
2017-05-05 13:26:27 +02:00
|
|
|
|
|
|
|
#endif
|