commit a8e2f79563c579280ca971aecb558e5070b7a2a7 parent ed4cecf19c125a861684c0ae5cae1776e063a1f2 Author: ThomasV <thomasv@electrum.org> Date: Wed, 27 Feb 2019 10:10:39 +0100 lnchannel: save timestamp when we settle Diffstat:
M | electrum/lnchannel.py | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py @@ -615,7 +615,12 @@ class Channel(PrintError): assert htlc.payment_hash == sha256(preimage) assert htlc_id not in log['settles'] self.hm.send_settle(htlc_id) - # not saving preimage because it's already saved in LNWorker.invoices + # save timestamp in LNWorker.preimages + try: + self.save_preimage(htlc.payment_hash, preimage, timestamp=int(time.time())) + except: + import traceback + traceback.print_exc() def receive_htlc_settle(self, preimage, htlc_id): self.print_error("receive_htlc_settle")