Swap handle_monitor_update_fail for a macro ala try_chan_entry
authorMatt Corallo <git@bluematt.me>
Mon, 26 Nov 2018 21:40:15 +0000 (16:40 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 11 Dec 2018 18:10:02 +0000 (13:10 -0500)
commit788dd738a84144b14f8a2e1dc919537084719c87
tree78b69146b3f5a00fe72486a9f654d6392b9b7aa6
parent16df97d988db57692703c70ac3dcfbe8762b912d
Swap handle_monitor_update_fail for a macro ala try_chan_entry

This resolves an API bug where send_payment may return a
MonitorUpdateFailed Err both when the payment will not be sent and
when the HTLC will be retried automatically when monitor updating
is restored. This makes it impossible for a client to know when
they should retry a payment and when they should not.
src/ln/channelmanager.rs