Implement dynamic height timer for bump candidates txn
authorAntoine Riard <ariard@student.42.fr>
Thu, 18 Jul 2019 21:27:48 +0000 (17:27 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 19 Jul 2019 21:31:27 +0000 (17:31 -0400)
commit757bcc2951b6750d39ef1d841593be1e7f1c57cd
tree64f0205a5050585f35801bce85dab4145577457a
parent81cea88d38c58595a12182a63abe7af090a374b5
Implement dynamic height timer for bump candidates txn

We must adapt our delay between two bumps of claim txn in respect
to the timelock encumbering the targeted outpoint. If HTLC or
revoked output is near to expire, we should try to get our claim
in every block. If it's reasonably in the future, we may give us
more latency to bump
src/ln/channelmonitor.rs