Move 'nTransactionFee' to wallet.cpp
authorsvost <ya.nowa@yandex.ru>
Fri, 10 Feb 2017 10:30:45 +0000 (13:30 +0300)
committersvost <ya.nowa@yandex.ru>
Fri, 10 Feb 2017 10:32:52 +0000 (13:32 +0300)
src/main.cpp
src/main.h
src/rpcblockchain.cpp
src/wallet.cpp
src/wallet.h

index 59a38a6..69bc3f7 100644 (file)
@@ -74,7 +74,6 @@ CScript COINBASE_FLAGS;
 const string strMessageMagic = "NovaCoin Signed Message:\n";
 
 // Settings
-int64_t nTransactionFee = MIN_TX_FEE;
 int64_t nMinimumInputValue = MIN_TXOUT_AMOUNT;
 
 // Ping and address broadcast intervals
index 22beb5d..77e1137 100644 (file)
@@ -87,7 +87,6 @@ extern uint32_t nNetworkID;
 extern std::map<uint256, CBlock*> mapOrphanBlocks;
 
 // Settings
-extern int64_t nTransactionFee;
 extern int64_t nMinimumInputValue;
 extern bool fUseFastIndex;
 extern int nScriptCheckThreads;
index bf0fda2..e1ef171 100644 (file)
@@ -3,7 +3,7 @@
 // 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>
index dc5d1d0..8a406fd 100644 (file)
 #include "main.h"
 
 using namespace std;
+
+//Settings
+
 extern int64_t nReserveBalance;
+int64_t nTransactionFee = MIN_TX_FEE;
 
 //////////////////////////////////////////////////////////////////////////////
 //
index 7cc7004..fbcd5c1 100644 (file)
@@ -7,8 +7,7 @@
 
 #include <string>
 #include <vector>
-
-#include <stdlib.h>
+#include <cstdlib>
 
 #include "main.h"
 #include "key.h"
 
 extern bool fWalletUnlockMintOnly;
 extern bool fConfChange;
+
 class CAccountingEntry;
 class CWalletTx;
 class CReserveKey;
 class COutput;
 class CCoinControl;
 
+//Settings
+extern int64_t nTransactionFee;
+
 // Set of selected transactions
 typedef std::set<std::pair<const CWalletTx*,unsigned int> > CoinsSet;