We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4633356 commit db3ceecCopy full SHA for db3ceec
src/payment/bolt11.rs
@@ -100,16 +100,6 @@ impl Bolt11Payment {
100
}
101
102
let invoice = maybe_deref(invoice);
103
- let payment_id = PaymentId(invoice.payment_hash().to_byte_array());
104
- if let Some(payment) = self.payment_store.get(&payment_id) {
105
- if payment.status == PaymentStatus::Pending
106
- || payment.status == PaymentStatus::Succeeded
107
- {
108
- log_error!(self.logger, "Payment error: an invoice must not be paid twice.");
109
- return Err(Error::DuplicatePayment);
110
- }
111
112
-
113
let payment_hash = PaymentHash(invoice.payment_hash().to_byte_array());
114
let payment_id = PaymentId(invoice.payment_hash().to_byte_array());
115
if let Some(payment) = self.payment_store.get(&payment_id) {
0 commit comments