diff options
| author | Adam Jonas <[email protected]> | 2019-10-21 15:42:06 -0400 |
|---|---|---|
| committer | Adam Jonas <[email protected]> | 2019-10-28 10:26:46 -0400 |
| commit | 436ad436434b94982bcb7dc1d13a21949263ef73 (patch) | |
| tree | 9bb099ea82b8b2d40b68b7e8d1c3fa28add67e26 /src | |
| parent | Merge #17083: tests: Add fuzzing harness for various CScript related functions (diff) | |
| download | discoin-436ad436434b94982bcb7dc1d13a21949263ef73.tar.xz discoin-436ad436434b94982bcb7dc1d13a21949263ef73.zip | |
Fix issue with conflicted mempool tx in listsinceblock
listsinceblock now checks that returned transactions are not
conflicting with any transactions that are filtered out by
the given blockhash
Co-Authored-By: Michael Chrostowski <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index e57150122..591fb39bc 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1591,7 +1591,7 @@ static UniValue listsinceblock(const JSONRPCRequest& request) for (const std::pair<const uint256, CWalletTx>& pairWtx : pwallet->mapWallet) { CWalletTx tx = pairWtx.second; - if (depth == -1 || tx.GetDepthInMainChain(*locked_chain) < depth) { + if (depth == -1 || abs(tx.GetDepthInMainChain(*locked_chain)) < depth) { ListTransactions(*locked_chain, pwallet, tx, 0, true, transactions, filter, nullptr /* filter_label */); } } |