Unify claimtrie tests, add some additional root hash checks #181
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ UniValue getclaimsintrie(const UniValue& params, bool fHelp)
|
||||||
" \"name\" (string) the name claimed\n"
|
" \"name\" (string) the name claimed\n"
|
||||||
" \"claims\": [ (array of object) the claims for this name\n"
|
" \"claims\": [ (array of object) the claims for this name\n"
|
||||||
" {\n"
|
" {\n"
|
||||||
|
" \"claimId\" (string) the claimId of the claim\n"
|
||||||
" \"txid\" (string) the txid of the claim\n"
|
" \"txid\" (string) the txid of the claim\n"
|
||||||
" \"n\" (numeric) the vout value of the claim\n"
|
" \"n\" (numeric) the vout value of the claim\n"
|
||||||
" \"amount\" (numeric) txout amount\n"
|
" \"amount\" (numeric) txout amount\n"
|
||||||
|
@ -48,6 +49,7 @@ UniValue getclaimsintrie(const UniValue& params, bool fHelp)
|
||||||
for (std::vector<CClaimValue>::iterator itClaims = it->second.claims.begin(); itClaims != it->second.claims.end(); ++itClaims)
|
for (std::vector<CClaimValue>::iterator itClaims = it->second.claims.begin(); itClaims != it->second.claims.end(); ++itClaims)
|
||||||
{
|
{
|
||||||
UniValue claim(UniValue::VOBJ);
|
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("txid", itClaims->outPoint.hash.GetHex()));
|
||||||
claim.push_back(Pair("n", (int)itClaims->outPoint.n));
|
claim.push_back(Pair("n", (int)itClaims->outPoint.n));
|
||||||
claim.push_back(Pair("amount", ValueFromAmount(itClaims->nAmount)));
|
claim.push_back(Pair("amount", ValueFromAmount(itClaims->nAmount)));
|
||||||
|
|
Loading…
Reference in a new issue