// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-#include "main.h"
+#include "wallet.h"
#include "bitcoinrpc.h"
#include <boost/filesystem.hpp>
#include <boost/iostreams/device/file.hpp>
pindex = pindex->pprev;
}
- if (!nStakesHandled)
+ if (!nStakesHandled || nStakesTime == 0)
return 0;
return dStakeKernelsTriedAvg / nStakesTime;