From c304d25b2e27273cfb1f39ffbd86718116688e1a Mon Sep 17 00:00:00 2001 From: Anthony Fieroni Date: Mon, 17 May 2021 16:00:09 +0300 Subject: [PATCH] Fix listaccount pagination after start one Signed-off-by: Anthony Fieroni --- src/masternodes/rpc_accounts.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/masternodes/rpc_accounts.cpp b/src/masternodes/rpc_accounts.cpp index d5f3d6fb89b..5dba44569a9 100644 --- a/src/masternodes/rpc_accounts.cpp +++ b/src/masternodes/rpc_accounts.cpp @@ -262,7 +262,6 @@ UniValue listaccounts(const JSONRPCRequest& request) { // parse pagination size_t limit = 100; - DCT_ID startId = {}; BalanceKey start = {}; bool including_start = true; { @@ -274,7 +273,6 @@ UniValue listaccounts(const JSONRPCRequest& request) { if (!paginationObj["start"].isNull()) { including_start = false; start = decodeBalanceKey(paginationObj["start"].get_str()); - startId = start.tokenID; } if (!paginationObj["including_start"].isNull()) { including_start = paginationObj["including_start"].getBool(); @@ -323,7 +321,7 @@ UniValue listaccounts(const JSONRPCRequest& request) { return --limit != 0; }, {account, start.tokenID}); - start.tokenID = startId; // reset to start id + start.tokenID = DCT_ID{}; // reset to start id return limit != 0; }, start.owner);