From dd8638dba84900a070483a1316642eefc55db9a5 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 13 Apr 2017 14:40:10 -0400 Subject: [PATCH] include the claimid in the response for getclaimsintrie --- src/rpc/claimtrie.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/claimtrie.cpp b/src/rpc/claimtrie.cpp index 4b46ce1eb..26b71547a 100644 --- a/src/rpc/claimtrie.cpp +++ b/src/rpc/claimtrie.cpp @@ -21,6 +21,7 @@ UniValue getclaimsintrie(const UniValue& params, bool fHelp) " \"name\" (string) the name claimed\n" " \"claims\": [ (array of object) the claims for this name\n" " {\n" + " \"claimId\" (string) the claimId of the claim\n" " \"txid\" (string) the txid of the claim\n" " \"n\" (numeric) the vout value of the claim\n" " \"amount\" (numeric) txout amount\n" @@ -48,6 +49,7 @@ UniValue getclaimsintrie(const UniValue& params, bool fHelp) for (std::vector::iterator itClaims = it->second.claims.begin(); itClaims != it->second.claims.end(); ++itClaims) { UniValue claim(UniValue::VOBJ); + claim.push_back(Pair("claimId", itClaims->claimId.GetHex())); claim.push_back(Pair("txid", itClaims->outPoint.hash.GetHex())); claim.push_back(Pair("n", (int)itClaims->outPoint.n)); claim.push_back(Pair("amount", ValueFromAmount(itClaims->nAmount))); -- 2.45.2