Cache current local commitment number in ChannelMonitor.
authorAntoine Riard <ariard@student.42.fr>
Tue, 24 Mar 2020 23:26:28 +0000 (19:26 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:43:50 +0000 (17:43 -0400)
commit493ffb81e197fefe11f821f19c15a0eac8fbd3d6
treed87e59b1f1f99fe4b2191921af25311a7dba49ad
parent2be1f72005d407ed0183b383deeaca6b88becc31
Cache current local commitment number in ChannelMonitor.

By caching current local commitment number instead of deciphering
it from local commitment tx, we may remove local commitment tx
from ChannelMonitor in next commit.
lightning/src/ln/channelmonitor.rs