mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Move nTransactionFee from main.cpp to wallet.cpp
Transaction fee is only used by the wallet. No need for it to be in main.cpp.
This commit is contained in:
@@ -78,9 +78,7 @@ Value getinfo(const Array& params, bool fHelp)
|
||||
obj.push_back(Pair("keypoololdest", (boost::int64_t)pwalletMain->GetOldestKeyPoolTime()));
|
||||
obj.push_back(Pair("keypoolsize", (int)pwalletMain->GetKeyPoolSize()));
|
||||
}
|
||||
#endif
|
||||
obj.push_back(Pair("paytxfee", ValueFromAmount(nTransactionFee)));
|
||||
#ifdef ENABLE_WALLET
|
||||
if (pwalletMain && pwalletMain->IsCrypted())
|
||||
obj.push_back(Pair("unlocked_until", (boost::int64_t)nWalletUnlockTime));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user