Skip to content

Commit

Permalink
Fixes issue 8752 in listsinceblock RPC.
Browse files Browse the repository at this point in the history
listsinceblock now checks that returned transactions are not
conflicting with any transactions that are filtered out by
the given blockhash.
  • Loading branch information
mchrostowski committed May 27, 2017
1 parent 9389d33 commit df09c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Expand Up @@ -1772,7 +1772,7 @@ UniValue listsinceblock(const JSONRPCRequest& request)
for (const std::pair<uint256, CWalletTx>& pairWtx : pwallet->mapWallet) {
CWalletTx tx = pairWtx.second;

if (depth == -1 || tx.GetDepthInMainChain() < depth)
if (depth == -1 || abs(tx.GetDepthInMainChain()) < depth)
ListTransactions(pwallet, tx, "*", 0, true, transactions, filter);
}

Expand Down

0 comments on commit df09c3a

Please sign in to comment.