1
0

lnpeer: reestablish_channel - discard unsigned remote updates

This commit is contained in:
SomberNight
2019-08-02 21:00:18 +02:00
committed by ThomasV
parent c046f2cc1c
commit e81ae1921b
2 changed files with 21 additions and 0 deletions

View File

@@ -692,6 +692,8 @@ class Peer(Logger):
return
chan.set_state('REESTABLISHING')
self.network.trigger_callback('channel', chan)
# BOLT-02: "A node [...] upon disconnection [...] MUST reverse any uncommitted updates sent by the other side"
chan.hm.discard_unsigned_remote_updates()
# ctns
oldest_unrevoked_local_ctn = chan.config[LOCAL].ctn
latest_local_ctn = chan.hm.ctn_latest(LOCAL)