Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 1,467 Lines • ▼ Show 20 Lines | static UniValue addmultisigaddress(const Config &config, | ||||
UniValue result(UniValue::VOBJ); | UniValue result(UniValue::VOBJ); | ||||
result.pushKV("address", EncodeDestination(dest, config)); | result.pushKV("address", EncodeDestination(dest, config)); | ||||
result.pushKV("redeemScript", HexStr(inner.begin(), inner.end())); | result.pushKV("redeemScript", HexStr(inner.begin(), inner.end())); | ||||
return result; | return result; | ||||
} | } | ||||
struct tallyitem { | struct tallyitem { | ||||
Amount nAmount; | Amount nAmount{Amount::zero()}; | ||||
int nConf; | int nConf{std::numeric_limits<int>::max()}; | ||||
std::vector<uint256> txids; | std::vector<uint256> txids; | ||||
bool fIsWatchonly; | bool fIsWatchonly{false}; | ||||
tallyitem() { | tallyitem() {} | ||||
nAmount = Amount::zero(); | |||||
nConf = std::numeric_limits<int>::max(); | |||||
fIsWatchonly = false; | |||||
} | |||||
}; | }; | ||||
static UniValue ListReceived(const Config &config, CWallet *const pwallet, | static UniValue ListReceived(const Config &config, CWallet *const pwallet, | ||||
const UniValue ¶ms, bool by_label) | const UniValue ¶ms, bool by_label) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | ||||
// Minimum confirmations | // Minimum confirmations | ||||
int nMinDepth = 1; | int nMinDepth = 1; | ||||
if (!params[0].isNull()) { | if (!params[0].isNull()) { | ||||
▲ Show 20 Lines • Show All 2,850 Lines • Show Last 20 Lines |