Skip to content

Commit

Permalink
Merge pull request bitcoin#3031 from Diapolo/miner
Browse files Browse the repository at this point in the history
internal miner: move 2 globals from main to miner
  • Loading branch information
laanwj committed Sep 28, 2013
2 parents 18c5910 + 8d750f1 commit 7de4e47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ CScript COINBASE_FLAGS;

const string strMessageMagic = "Bitcoin Signed Message:\n";

double dHashesPerSec = 0.0;
int64 nHPSTimerStart = 0;

// Settings
int64 nTransactionFee = 0;

Expand Down
2 changes: 0 additions & 2 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ extern unsigned int nTransactionsUpdated;
extern uint64 nLastBlockTx;
extern uint64 nLastBlockSize;
extern const std::string strMessageMagic;
extern double dHashesPerSec;
extern int64 nHPSTimerStart;
extern int64 nTimeBestReceived;
extern CCriticalSection cs_setpwalletRegistered;
extern std::set<CWallet*> setpwalletRegistered;
Expand Down
8 changes: 2 additions & 6 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core.h"
#include "wallet.h"
#include "miner.h"
#include "main.h"





double dHashesPerSec = 0.0;
int64 nHPSTimerStart = 0;

//////////////////////////////////////////////////////////////////////////////
//
Expand Down
3 changes: 3 additions & 0 deletions src/miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
/** Base sha256 mining transform */
void SHA256Transform(void* pstate, void* pinput, const void* pinit);

extern double dHashesPerSec;
extern int64 nHPSTimerStart;

#endif // BITCOIN_MINER_H

0 comments on commit 7de4e47

Please sign in to comment.