From 8a7a41572775ebbf4ec42adc9d68d452f574bd54 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 31 Jul 2015 12:50:05 +0200 Subject: [PATCH] require MiningBenefactor to be set in order to mine --- libethereum/Client.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index f6aee9d06..87a7d28a9 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -694,8 +694,14 @@ void Client::onPostStateChanged() void Client::startMining() { - m_wouldMine = true; - rejigMining(); + clog(ClientNote) << "MiningBenefactor: " << address(); + if (address() != Address()) + { + m_wouldMine = true; + rejigMining(); + } + else + clog(ClientNote) << "You need to set a MiningBenefactor in order to mine!"; } void Client::rejigMining()