Skip to content

Commit

Permalink
getusedcoinstags fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jul 28, 2023
1 parent f72a9c5 commit f969b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ UniValue getusedcoinstags(const JSONRPCRequest& request)
UniValue serializedTags(UniValue::VARR);
int i = 0;
for ( auto it = tags.begin(); it != tags.end(); ++it, ++i) {
if (i < startNumber)
if ((serials.size() - i - 1) < startNumber)
continue;
std::vector<unsigned char> serialized;
serialized.resize(34);
Expand Down

0 comments on commit f969b6b

Please sign in to comment.