Return JoinSplit and JoinSplitOutput indexes in z_listreceivedbyaddress

This commit is contained in:
Jonathan "Duke" Leto 2018-03-07 14:42:05 -08:00
parent b3a656cf53
commit cb7bcd21ae
1 changed files with 3 additions and 0 deletions

View File

@ -3111,6 +3111,9 @@ UniValue z_listreceivedbyaddress(const UniValue& params, bool fHelp)
obj.push_back(Pair("amount", ValueFromAmount(CAmount(entry.plaintext.value))));
std::string data(entry.plaintext.memo.begin(), entry.plaintext.memo.end());
obj.push_back(Pair("memo", HexStr(data)));
// (txid, jsindex, jsoutindex) is needed to globally identify a note
obj.push_back(Pair("jsindex", entry.jsop.js));
obj.push_back(Pair("jsoutindex", entry.jsop.n));
result.push_back(obj);
}
return result;