We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b77ce1 + a2a90ee commit 78174f3Copy full SHA for 78174f3
lightning-persister/src/lib.rs
@@ -122,6 +122,12 @@ impl FilesystemPersister {
122
"Invalid ChannelMonitor file name",
123
));
124
}
125
+ if filename.unwrap().ends_with(".tmp") {
126
+ // If we were in the middle of committing an new update and crashed, it should be
127
+ // safe to ignore the update - we should never have returned to the caller and
128
+ // irrevocably committed to the new state in any way.
129
+ continue;
130
+ }
131
132
let txid = Txid::from_hex(filename.unwrap().split_at(64).0);
133
if txid.is_err() {
0 commit comments