Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/misc.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | if (pwallet) { | ||||
obj.push_back(Pair("keypoololdest", pwallet->GetOldestKeyPoolTime())); | obj.push_back(Pair("keypoololdest", pwallet->GetOldestKeyPoolTime())); | ||||
obj.push_back(Pair("keypoolsize", (int)pwallet->GetKeyPoolSize())); | obj.push_back(Pair("keypoolsize", (int)pwallet->GetKeyPoolSize())); | ||||
} | } | ||||
if (pwallet && pwallet->IsCrypted()) { | if (pwallet && pwallet->IsCrypted()) { | ||||
obj.push_back(Pair("unlocked_until", pwallet->nRelockTime)); | obj.push_back(Pair("unlocked_until", pwallet->nRelockTime)); | ||||
} | } | ||||
obj.push_back(Pair("paytxfee", ValueFromAmount(payTxFee.GetFeePerK()))); | obj.push_back(Pair("paytxfee", ValueFromAmount(payTxFee.GetFeePerK()))); | ||||
#endif | #endif | ||||
obj.push_back( | obj.push_back(Pair("relayfee", | ||||
Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); | ValueFromAmount(config.GetMinFeePerKB().GetFeePerK()))); | ||||
obj.push_back(Pair("errors", GetWarnings("statusbar"))); | obj.push_back(Pair("errors", GetWarnings("statusbar"))); | ||||
return obj; | return obj; | ||||
} | } | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
class DescribeAddressVisitor : public boost::static_visitor<UniValue> { | class DescribeAddressVisitor : public boost::static_visitor<UniValue> { | ||||
public: | public: | ||||
CWallet *const pwallet; | CWallet *const pwallet; | ||||
▲ Show 20 Lines • Show All 515 Lines • Show Last 20 Lines |