Work toward policy based network connectivity.

This commit is contained in:
Arthur Britto
2012-04-25 23:04:38 -07:00
parent ea809a0fe0
commit 396eca1a3c
15 changed files with 315 additions and 144 deletions

View File

@@ -1,4 +1,11 @@
#include "string"
#ifndef __CONFIG__
#define __CONFIG__
#include <string>
#define SYSTEM_NAME "newcoin"
const int SYSTEM_PEER_PORT=6561;
class Config
{
@@ -8,9 +15,7 @@ public:
std::string VERSION_STR;
// network parameters
// std::string NETWORK_ID;
// std::string NETWORK_DNS_SEEDS;
int NETWORK_START_TIME; // The Unix time we start ledger 0
int NETWORK_START_TIME; // The Unix time we start ledger 0
int TRANSACTION_FEE_BASE;
int LEDGER_SECONDS;
int LEDGER_PROPOSAL_DELAY_SECONDS;
@@ -28,8 +33,6 @@ public:
// bool NODE_DUMB; // we are a 'dumb' client
// bool NODE_SMART; // we offer services to 'dumb' clients
// std::string HANKO_PRIVATE;
// RPC parameters
std::string RPC_IP;
int RPC_PORT;
@@ -48,3 +51,4 @@ public:
};
extern Config theConfig;
#endif