]> git.bitcoin.ninja Git - rust-lightning/commit
Handle duplicate payment_hash send_payment()s 2018-07-duplicate_hash
authorMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 19:44:27 +0000 (15:44 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 23:39:26 +0000 (19:39 -0400)
commite0c75caa3ae4449bded27b2f8642b2e852c23e19
treecc7ea4cd1c79fbe18b3c31ca70d1a0ed30cf43c5
parentc75d07fdd41714a22249971d2dea55b4a1a1b202
Handle duplicate payment_hash send_payment()s

We don't bother doing anything smart, we just return an Err in
case we have a pending outbound HTLC with the payment_hash provided
for the send.

This doesn't resolve the TODO as users can still send duplicative
payments that have the same payment_hash as was already sent,
though the docs are updated and hopefully users do so on their own.
src/ln/channelmanager.rs