Skip to content

Commit

Permalink
Fix waitforlogs rpc call bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Aug 6, 2018
1 parent 4c65e81 commit 75c22ce
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 75c22ce

Please sign in to comment.