Skip to content

Commit

Permalink
fix: logic error in legacy receipt pool update
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Aug 14, 2023
1 parent 86077bb commit ae1b526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph-gateway/src/receipts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ReceiptSigner {
legacy_pool.remove_allocation(&old_allocation);
}
// add allocation, if not already present
if legacy_pool.contains_allocation(&allocation) {
if !legacy_pool.contains_allocation(&allocation) {
legacy_pool.add_allocation(self.signer_key, *allocation);
}
}
Expand Down

0 comments on commit ae1b526

Please sign in to comment.