aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-03-07 17:59:30 -0800
committerjtimon <jtimon@monetize.io>2014-06-04 13:29:35 +0200
commit1712adbe0b084b6907b82db350a51ab44f8c3117 (patch)
treee6cea138e14e955442f336d658d20ba499df5d35 /src/chainparams.h
parent358a61ee061f5cec53c62e8226872a2d02afdb0d (diff)
Add MiningRequiresPeers chain parameter
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index 5600b904cc..a73279fe67 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -59,6 +59,8 @@ public:
int SubsidyHalvingInterval() const { return nSubsidyHalvingInterval; }
virtual const CBlock& GenesisBlock() const = 0;
virtual bool RequireRPCPassword() const { return true; }
+ /* Make miner wait to have peers to avoid wasting work */
+ virtual bool MiningRequiresPeers() const { return true; }
const string& DataDir() const { return strDataDir; }
virtual Network NetworkID() const = 0;
const vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }