mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 04:54:30 +00:00
Removed the main.h include from net.cpp.
This commit is contained in:
parent
501da2503a
commit
6e68524e95
@ -35,8 +35,6 @@ static const unsigned int MAX_STANDARD_TX_SIZE = MAX_BLOCK_SIZE_GEN/5;
|
|||||||
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
|
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
|
||||||
/** The maximum number of orphan transactions kept in memory */
|
/** The maximum number of orphan transactions kept in memory */
|
||||||
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
|
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
|
||||||
/** The maximum number of entries in an 'inv' protocol message */
|
|
||||||
static const unsigned int MAX_INV_SZ = 50000;
|
|
||||||
/** The maximum size of a blk?????.dat file (since 0.8) */
|
/** The maximum size of a blk?????.dat file (since 0.8) */
|
||||||
static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB
|
static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB
|
||||||
/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */
|
/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "db.h"
|
#include "db.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
#include "main.h"
|
#include "core.h"
|
||||||
#include "addrman.h"
|
#include "addrman.h"
|
||||||
#include "ui_interface.h"
|
#include "ui_interface.h"
|
||||||
#include "script.h"
|
#include "script.h"
|
||||||
@ -1567,11 +1567,6 @@ void static StartSync(const vector<CNode*> &vNodes) {
|
|||||||
CNode *pnodeNewSync = NULL;
|
CNode *pnodeNewSync = NULL;
|
||||||
double dBestScore = 0;
|
double dBestScore = 0;
|
||||||
|
|
||||||
// fImporting and fReindex are accessed out of cs_main here, but only
|
|
||||||
// as an optimization - they are checked again in SendMessages.
|
|
||||||
if (fImporting || fReindex)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Iterate over all nodes
|
// Iterate over all nodes
|
||||||
BOOST_FOREACH(CNode* pnode, vNodes) {
|
BOOST_FOREACH(CNode* pnode, vNodes) {
|
||||||
// check preconditions for allowing a sync
|
// check preconditions for allowing a sync
|
||||||
@ -1855,7 +1850,6 @@ bool StopNode()
|
|||||||
{
|
{
|
||||||
printf("StopNode()\n");
|
printf("StopNode()\n");
|
||||||
MapPort(false);
|
MapPort(false);
|
||||||
nTransactionsUpdated++;
|
|
||||||
if (semOutbound)
|
if (semOutbound)
|
||||||
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
|
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
|
||||||
semOutbound->post();
|
semOutbound->post();
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
|
|
||||||
|
/** The maximum number of entries in an 'inv' protocol message */
|
||||||
|
static const unsigned int MAX_INV_SZ = 50000;
|
||||||
|
|
||||||
class CNode;
|
class CNode;
|
||||||
class CBlockIndex;
|
class CBlockIndex;
|
||||||
extern int nBestHeight;
|
extern int nBestHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user