diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index de22453b7e..9e94860b16 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1359,8 +1359,16 @@ UniValue waitforlogs(const JSONRPCRequest& request_) { UniValue jsonLogs(UniValue::VARR); + std::set dupes; + for (const auto& txHashes : hashesToBlock) { for (const auto& txHash : txHashes) { + + if(dupes.find(txHash) != dupes.end()) { + continue; + } + dupes.insert(txHash); + std::vector receipts = pstorageresult->getResult( uintToh256(txHash));