Skip to content

Commit

Permalink
getusedcoinserials fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jul 28, 2023
1 parent 7f39073 commit f72a9c5
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 @@ -1092,7 +1092,7 @@ UniValue getusedcoinserials(const JSONRPCRequest& request)
UniValue serializedSerials(UniValue::VARR);
int i = 0;
for ( auto it = serials.begin(); it != serials.end(); ++it, ++i) {
if (i < startNumber)
if ((serials.size() - i - 1) < startNumber)
continue;
std::vector<unsigned char> serialized;
serialized.resize(32);
Expand Down

0 comments on commit f72a9c5

Please sign in to comment.