mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
fixed tiny glitch and improved readability like laanwj suggested
This commit is contained in:
parent
d7d5d23b77
commit
a5c6c5d6df
4 changed files with 40 additions and 52 deletions
|
|
@ -171,9 +171,9 @@ Value validateaddress(const Array& params, bool fHelp)
|
|||
ret.push_back(Pair("address", currentAddress));
|
||||
#ifdef ENABLE_WALLET
|
||||
isminetype mine = pwalletMain ? IsMine(*pwalletMain, dest) : MINE_NO;
|
||||
ret.push_back(Pair("ismine", mine == MINE_SPENDABLE));
|
||||
ret.push_back(Pair("ismine", (mine & MINE_SPENDABLE) ? true : false));
|
||||
if (mine != MINE_NO) {
|
||||
ret.push_back(Pair("watchonly", mine == MINE_WATCH_ONLY));
|
||||
ret.push_back(Pair("iswatchonly", (mine & MINE_WATCH_ONLY) ? true: false));
|
||||
Object detail = boost::apply_visitor(DescribeAddressVisitor(mine), dest);
|
||||
ret.insert(ret.end(), detail.begin(), detail.end());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue