lightningd: Fix channel-persistence for channels with commits

I was hoping to defer HTLC updates until we actually store HTLCs, but
we need to flush to DB whenever balances update as well.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2017-08-24 14:15:30 +02:00
committed by Rusty Russell
parent d3f36ba8ae
commit 4b64b7f2aa
3 changed files with 32 additions and 2 deletions

View File

@@ -61,6 +61,8 @@ class TailableProc(object):
def stop(self):
self.proc.terminate()
self.proc.kill()
self.proc.wait()
self.thread.join()
if self.outputDir:
logpath = os.path.join(self.outputDir, 'log')
with open(logpath, 'w') as f: