Return JoinSplit and JoinSplitOutput indexes in z_listreceivedbyaddress
This commit is contained in:
parent
b3a656cf53
commit
cb7bcd21ae
|
@ -3111,6 +3111,9 @@ UniValue z_listreceivedbyaddress(const UniValue& params, bool fHelp)
|
||||||
obj.push_back(Pair("amount", ValueFromAmount(CAmount(entry.plaintext.value))));
|
obj.push_back(Pair("amount", ValueFromAmount(CAmount(entry.plaintext.value))));
|
||||||
std::string data(entry.plaintext.memo.begin(), entry.plaintext.memo.end());
|
std::string data(entry.plaintext.memo.begin(), entry.plaintext.memo.end());
|
||||||
obj.push_back(Pair("memo", HexStr(data)));
|
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);
|
result.push_back(obj);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue