Skip to content

Commit

Permalink
Merge pull request #592 from qtumproject/neil/fix-waitforlogs-bug
Browse files Browse the repository at this point in the history
Fix waitforlogs rpc call bug
  • Loading branch information
qtum-neil authored Aug 6, 2018
2 parents 4c65e81 + 75c22ce commit 7e97fa4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,16 @@ UniValue waitforlogs(const JSONRPCRequest& request_) {

UniValue jsonLogs(UniValue::VARR);

std::set<uint256> dupes;

for (const auto& txHashes : hashesToBlock) {
for (const auto& txHash : txHashes) {

if(dupes.find(txHash) != dupes.end()) {
continue;
}
dupes.insert(txHash);

std::vector<TransactionReceiptInfo> receipts = pstorageresult->getResult(
uintToh256(txHash));

Expand Down

0 comments on commit 7e97fa4

Please sign in to comment.